X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/1c33c678365888dfd0e9ba9271dc55d6093d490d..149ff7181e0f706d39af5f837a6da24fcfc50cbb:/ev.c?ds=inline diff --git a/ev.c b/ev.c index 7bed969..20d0e3b 100644 --- a/ev.c +++ b/ev.c @@ -415,8 +415,10 @@ sighandler (int signum) if (!gotsig) { + int old_errno = errno; gotsig = 1; write (sigpipe [1], &signum, 1); + errno = old_errno; } }