musl/src/stdio/pclose.c

11 lines
171 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "stdio_impl.h"
int pclose(FILE *f)
{
int status;
fclose(f);
while (waitpid(f->pipe_pid, &status, 0) == -1)
if (errno != EINTR) return -1;
return status;
}