]> granicus.if.org Git - python/commitdiff
Oops, the patch for NeXT always replaced waitpid() with wait4() --
authorGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 16:15:30 +0000 (16:15 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 16:15:30 +0000 (16:15 +0000)
this doesn't exist everywhere, so go back to using #ifdef NeXT.

Modules/posixmodule.c

index 19c7809fdb3235395f196e356bec7585e25b60ce..1be268c258379c6e51e4181e8ef2eedbf98b8a06 100644 (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();