Skip to content

Commit

Permalink
remove global pid
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 10, 2012
1 parent 6a1624f commit 2b93f15
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@

static const char *prefix = NULL;

/*
* Child process PID.
*/

static pid_t pid;

/*
* Monitor.
*/
Expand Down Expand Up @@ -282,7 +276,7 @@ attempts_exceeded(monitor_t *monitor, int64_t ms) {
void
start(const char *cmd, monitor_t *monitor) {
exec: {
pid = fork();
pid_t pid = fork();
int status;

switch (pid) {
Expand Down

0 comments on commit 2b93f15

Please sign in to comment.