Kaydet (Commit) e6a3aa60 authored tarafından Guido van Rossum's avatar Guido van Rossum

Oops, the patch for NeXT always replaced waitpid() with wait4() --

this doesn't exist everywhere, so go back to using #ifdef NeXT.
üst fe64935c
......@@ -2017,7 +2017,11 @@ posix_waitpid(self, args)
if (!PyArg_Parse(args, "(ii)", &pid, &options))
return NULL;
Py_BEGIN_ALLOW_THREADS
#ifdef NeXT
pid = wait4(pid, &status, options, NULL);
#else
pid = waitpid(pid, &status, options);
#endif
Py_END_ALLOW_THREADS
if (pid == -1)
return posix_error();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment