old-cross-binutils/libiberty/waitpid.c
1999-05-03 07:29:11 +00:00

11 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;
}
}