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:
@@ -11,21 +11,20 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
||||||
// ToDo: properly implement wait(), waitpid(), and waitid()
|
// ToDo: properly implement waitpid(), and waitid()
|
||||||
|
|
||||||
|
|
||||||
pid_t
|
pid_t
|
||||||
wait(int *_status)
|
wait(int *_status)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "wait(): NOT IMPLEMENTED\n");
|
return waitpid(-1, _status, 0);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pid_t
|
pid_t
|
||||||
waitpid(pid_t pid, int *_status, int options)
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user