Hello,Do we have any way to find exit message of child process in the following case? That is, parent waits child to finish by reading output of child process.
Biobuf ib;
int fd[2];
pipe(fd);
switch(fork()){
case -1:
return -1;
case 0:
dup(fd[1], 1);
dup(fd[1], 2);
close(fd[1]);
exec(path, argv);
default:
close(fd[1]);
break;
}
Binit(&ib, fd[0], OREAD);
while((p = Brdstr(&ib,'\n',1))){
...
}
/* how to find exit message of child process here? */
Kenji Arisawa
