add portable lchown (trivial to support and a few ancient things want it..)
[musl] / src / stdio / pclose.c
1 #include "stdio_impl.h"
2
3 int pclose(FILE *f)
4 {
5         int status;
6         fclose(f);
7         while (waitpid(f->pipe_pid, &status, 0) == -1)
8                 if (errno != EINTR) return -1;
9         return status;
10 }