version 1.103, 2007/11/03 10:38:14 |
version 1.104, 2007/11/03 10:41:48 |
|
|
if ((cpid = fork()) == -1) { |
if ((cpid = fork()) == -1) { |
Punt("Cannot fork"); |
Punt("Cannot fork"); |
} else if (cpid == 0) { |
} else if (cpid == 0) { |
|
supervise_jobs = false; |
/* standard pipe code to route stdout and stderr */ |
/* standard pipe code to route stdout and stderr */ |
close(fdout[0]); |
close(fdout[0]); |
if (dup2(fdout[1], 1) == -1) |
if (dup2(fdout[1], 1) == -1) |
|
|
exit(1); |
exit(1); |
} |
} |
} else { |
} else { |
|
supervise_jobs = true; |
job->pid = cpid; |
job->pid = cpid; |
|
|
/* we set the current position in the buffers to the beginning |
/* we set the current position in the buffers to the beginning |