Name: Anonymous 2008-05-19 11:22
An elegant solution for this:
Thanks
/*
note: the double-fork construct avoids zombie processes
and keeps the code clean from stupid signal handlers.
*/
...
if(fork() == 0) {
if(fork() == 0) {
..
execl(pp, pp, (char*) NULL);
_exit(0);
}
_exit(0);
}
wait(NULL);
..Thanks