projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7c7779663e2dd6c191311e5e2cbf65340b00a7a9
[musl]
/
src
/
stdio
/
pclose.c
1
#include "stdio_impl.h"
2
3
int pclose(FILE *f)
4
{
5
int status;
6
pid_t pid = f->pipe_pid;
7
fclose(f);
8
while (waitpid(pid, &status, 0) == -1)
9
if (errno != EINTR) return -1;
10
return status;
11
}