fix(custom): exit status

This commit is contained in:
Alex
2019-06-11 22:09:47 +02:00
parent 3c9b533997
commit 564fdcb369
2 changed files with 9 additions and 3 deletions

View File

@ -33,7 +33,7 @@ inline int close(FILE* fp, pid_t pid) {
fclose(fp);
while (waitpid(pid, &stat, 0) == -1) {
if (errno != EINTR) {
stat = -1;
stat = 0;
break;
}
}