diff options
author | Guido van Rossum <guido@python.org> | 1999-02-01 16:15:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-01 16:15:30 (GMT) |
commit | e6a3aa6066dc7f726b84746d00590fdfa7d7639f (patch) | |
tree | a8f11ac0bda7806fc5cbd5dcdb85543c7ee6ae48 /Modules/posixmodule.c | |
parent | fe64935cf95e8471d79ff0675c65e4f7376e2b5f (diff) | |
download | cpython-e6a3aa6066dc7f726b84746d00590fdfa7d7639f.zip cpython-e6a3aa6066dc7f726b84746d00590fdfa7d7639f.tar.gz cpython-e6a3aa6066dc7f726b84746d00590fdfa7d7639f.tar.bz2 |
Oops, the patch for NeXT always replaced waitpid() with wait4() --
this doesn't exist everywhere, so go back to using #ifdef NeXT.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 19c7809..1be268c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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(); |