diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-04-12 19:01:55 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-04-12 19:01:55 +0200 |
commit | 4757774f75c126586a917a049a9c345396409089 (patch) | |
tree | 05b0809466a153ebb6dad2c05acfae86e3c9724e | |
parent | d15ba797f08bef5c234135e1a3360318c63c2205 (diff) | |
download | rvnit-4757774f75c126586a917a049a9c345396409089.tar.gz rvnit-4757774f75c126586a917a049a9c345396409089.tar.xz rvnit-4757774f75c126586a917a049a9c345396409089.zip |
-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 |