Chromium tried to close our pipes and falls into infinity loop.

If return value of close() is -1, chromium will fall into infinity loop.
pull/28/head
David 2014-01-08 13:38:59 +08:00
parent e2af2f2bd7
commit ecbd735508
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ int close(int fd) {
fd != resp_pipefd[0] && fd != resp_pipefd[1]) {
return true_close(fd);
}
errno = EINTR;
errno = EBADF;
return -1;
}