comparison src/process-unix.c @ 316:512e409c26a2 r21-0b56

Import from CVS: tag r21-0b56
author cvs
date Mon, 13 Aug 2007 10:44:46 +0200
parents 70ad99077275
children 19dcec799385
comparison
equal deleted inserted replaced
315:5e87bc5b1ee4 316:512e409c26a2
918 { 918 {
919 int piddly = EMACS_GET_PROCESS_GROUP (); 919 int piddly = EMACS_GET_PROCESS_GROUP ();
920 EMACS_SET_TTY_PROCESS_GROUP (xforkin, &piddly); 920 EMACS_SET_TTY_PROCESS_GROUP (xforkin, &piddly);
921 } 921 }
922 922
923 # ifdef AIX
924 /* On AIX, we've disabled SIGHUP above once we start a 923 /* On AIX, we've disabled SIGHUP above once we start a
925 child on a pty. Now reenable it in the child, so it 924 child on a pty. Now reenable it in the child, so it
926 will die when we want it to. */ 925 will die when we want it to.
926 JV: This needs to be done ALWAYS as we might have inherited
927 a SIG_IGN handling from our parent (nohup) and we are in new
928 process group.
929 */
927 signal (SIGHUP, SIG_DFL); 930 signal (SIGHUP, SIG_DFL);
928 # endif /* AIX */
929 } 931 }
930 #endif /* HAVE_PTYS */ 932 #endif /* HAVE_PTYS */
931 933
932 signal (SIGINT, SIG_DFL); 934 signal (SIGINT, SIG_DFL);
933 signal (SIGQUIT, SIG_DFL); 935 signal (SIGQUIT, SIG_DFL);