diff --git a/src/libproxychains.c b/src/libproxychains.c index 6b639c8..9eb1e11 100644 --- a/src/libproxychains.c +++ b/src/libproxychains.c @@ -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; }