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

this doesn't exist everywhere, so go back to using #ifdef NeXT.
This commit is contained in:
Guido van Rossum 1999-02-01 16:15:30 +00:00
parent fe64935cf9
commit e6a3aa6066
1 changed files with 4 additions and 0 deletions

View File

@ -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();