diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/wait.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/posix/wait.c b/posix/wait.c index 0acd1e4926..57064726f0 100644 --- a/posix/wait.c +++ b/posix/wait.c @@ -16,16 +16,12 @@ <https://www.gnu.org/licenses/>. */ #include <sys/wait.h> -#include <errno.h> /* Wait for a child to die. When one does, put its status in *STAT_LOC and return its process ID. For errors, return (pid_t) -1. */ __pid_t __wait (int *stat_loc) { - __set_errno (ENOSYS); - return -1; + return __waitpid (WAIT_ANY, stat_loc, 0); } -stub_warning (wait) - weak_alias (__wait, wait) |