search for: remember_children

Displaying 1 result from an estimated 1 matches for "remember_children".

2007 Feb 01
1
pre-xfer exec fails in FreeBSD
...he pre-xfer exec returns always be -1, which means waitpid failed to get the return status. After doing a little ugly patch for the wait_process function as follow, pre-xfer works again. --- main.c Thu Feb 1 22:42:23 2007 +++ main.c.orig Sat Oct 14 07:46:32 2006 @@ -103,10 +103,7 @@ * remember_children(), we succeed instead of returning an error. */ pid_t wait_process(pid_t pid, int *status_ptr, int flags) { - pid_t waited_pid; - do { - waited_pid = waitpid(pid, status_ptr, flags); - } while (errno == EINTR); + pid_t waited_pid = waitpid(pid, status_ptr, fl...