Sign in
fuchsia
/
third_party
/
binutils-gdb
/
37f7f684de0e53c8add5ff43d73082bf98985321
/
.
/
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
;
}
}