Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr55273.c
blob: 8ae5199b7893545fb99a23f817d3636bce969957 [
file
] [
log
] [
blame
]
extern
int
debug_threads
;
extern
void
sigsuspend
(
void
);
void
my_waitpid
(
int
flags
,
int
wnohang
)
{
while
(
1
)
{
if
(
flags
&
0x80000000
)
{
if
(
wnohang
)
break
;
if
(
debug_threads
)
__builtin_puts
(
"blocking\n"
);
sigsuspend
();
}
flags
^=
0x80000000
;
}
}