Implemented wait() using waitpid() following the POSIX spec.

Added some more debug output for waitpid().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-09-02 01:01:02 +00:00
parent 336ffbcd04
commit 929525b836

View File

@ -11,21 +11,20 @@
#include <errno.h>
// ToDo: properly implement wait(), waitpid(), and waitid()
// ToDo: properly implement waitpid(), and waitid()
pid_t
wait(int *_status)
{
fprintf(stderr, "wait(): NOT IMPLEMENTED\n");
return -1;
return waitpid(-1, _status, 0);
}
pid_t
waitpid(pid_t pid, int *_status, int options)
{
fprintf(stderr, "waitpid(): NOT IMPLEMENTED\n");
fprintf(stderr, "waitpid(pid = %ld, options = %d): NOT IMPLEMENTED\n", pid, options);
return -1;
}