Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: GNU nohup oddness



> (3) In Src/init.c:init_signals(), zsh explicitly installs a SIGHUP
>     handler, even in non-interactive shells.  It has done so for a
>     very long time -- as far back as recorded in my CVS of 3.0.x,
>     which means prior to 27-Jun-97.

So is this the right thing to do?

Index: Src/init.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/init.c,v
retrieving revision 1.29
diff -u -r1.29 init.c
--- Src/init.c	13 Nov 2002 10:24:24 -0000	1.29
+++ Src/init.c	7 Dec 2002 15:22:23 -0000
@@ -897,13 +897,13 @@
     signal_ignore(SIGQUIT);
 #endif
 
-    install_handler(SIGHUP);
     install_handler(SIGCHLD);
 #ifdef SIGWINCH
     install_handler(SIGWINCH);
 #endif
     if (interact) {
 	install_handler(SIGALRM);
+	install_handler(SIGHUP);
 	signal_ignore(SIGTERM);
     }
     if (jobbing) {



Messages sorted by: Reverse Date, Date, Thread, Author