Sign in
gnu
/
gcc
/
0b9db4a2b3be0105812104f4b6f9a4c310b3e1b1
/
.
/
libiberty
/
waitpid.c
blob: 23db0b932d2e2c9d5d6b9b3a561e420e04ac54b9 [
file
] [
log
] [
blame
]
int
waitpid
(
pid
,
stat_loc
,
options
)
int
pid
,
*
stat_loc
,
options
;
{
for
(;;)
{
int
wpid
=
wait
(
stat_loc
);
if
(
wpid
==
pid
||
wpid
==
-
1
)
return
wpid
;
}
}