mirror of
https://github.com/fluencelabs/musl
synced 2025-05-21 19:51:31 +00:00
11 lines
171 B
C
11 lines
171 B
C
|
#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;
|
||
|
}
|