1
0

pclose.c 171 B

12345678910
  1. #include "stdio_impl.h"
  2. int pclose(FILE *f)
  3. {
  4. int status;
  5. fclose(f);
  6. while (waitpid(f->pipe_pid, &status, 0) == -1)
  7. if (errno != EINTR) return -1;
  8. return status;
  9. }