Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
stdio
/
pclose.c
blob: 2eeccdd6d00da6d69e25bb5d871f2839a19da688 [
file
] [
log
] [
blame
]
#include
<errno.h>
#include
<sys/wait.h>
#include
<unistd.h>
#include
"stdio_impl.h"
int
pclose
(
FILE
*
f
)
{
pid_t
pid
=
f
->
pipe_pid
;
fclose
(
f
);
return
waitpid
(
pid
,
NULL
,
0
);
}