mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 16:39:31 +00:00
52cb49752a
this is heavily stripped down.
12 lines
178 B
C
12 lines
178 B
C
int
|
|
waitpid (pid, stat_loc, options)
|
|
int pid, *stat_loc, options;
|
|
{
|
|
for (;;)
|
|
{
|
|
int wpid = wait(stat_loc);
|
|
if (wpid == pid || wpid == -1)
|
|
return wpid;
|
|
}
|
|
}
|