diff options
-rw-r--r-- | rvnit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c index 46a1009..1ba37aa 100644 --- a/rvnit.c +++ b/rvnit.c @@ -75,6 +75,8 @@ int want_rescandir; void on_signal(int sig) { + int old_errno = errno; + switch (sig) { case SIGINT: if (real_pid1) @@ -92,6 +94,8 @@ on_signal(int sig) write(selfpipe[1], "", 1); break; } + + errno = old_errno; } pid_t |