diff options
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/nohup.c | 2 | ||||
-rw-r--r-- | toys/posix/tee.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/nohup.c b/toys/posix/nohup.c index 658ab939..4d6d59f6 100644 --- a/toys/posix/nohup.c +++ b/toys/posix/nohup.c @@ -21,7 +21,7 @@ config NOHUP void nohup_main(void) { - signal(SIGHUP, SIG_IGN); + xsignal(SIGHUP, SIG_IGN); if (isatty(1)) { close(1); if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, diff --git a/toys/posix/tee.c b/toys/posix/tee.c index 03885109..909ea58d 100644 --- a/toys/posix/tee.c +++ b/toys/posix/tee.c @@ -45,7 +45,7 @@ static void do_tee_open(int fd, char *name) void tee_main(void) { - if (toys.optflags & FLAG_i) signal(SIGINT, SIG_IGN); + if (toys.optflags & FLAG_i) xsignal(SIGINT, SIG_IGN); // Open output files loopfiles_rw(toys.optargs, |