Displaying 1 result from an estimated 1 matches for "status_ptr".
Did you mean:
state_ptr
2007 Feb 01
1
pre-xfer exec fails in FreeBSD
...g 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, flags);
if (waited_pid == -1 && errno == ECHILD) {
/* Status of...