diff toys/posix/nohup.c @ 1727:c0ef9b7976f0 draft

Use xsignal() instead of signal().
author Rob Landley <rob@landley.net>
date Tue, 10 Mar 2015 11:07:28 -0500
parents cbb1aca81eca
children
line wrap: on
line diff
--- a/toys/posix/nohup.c	Mon Mar 09 15:06:10 2015 -0500
+++ b/toys/posix/nohup.c	Tue Mar 10 11:07:28 2015 -0500
@@ -21,7 +21,7 @@
 
 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,