*** xinit.c.ORIG Fri Apr 2 23:47:36 2004 --- xinit.c Tue Dec 7 11:44:37 2004 *************** *** 204,209 **** --- 204,210 ---- #ifdef X_NOT_POSIX char buf[1024]; + signal(SIGTERM, SIG_IGN); signal(SIGQUIT, SIG_IGN); signal(SIGINT, SIG_IGN); signal(SIGHUP, SIG_IGN); *************** *** 429,434 **** --- 430,436 ---- signal(SIGCHLD, SIG_DFL); /* Insurance */ #endif #ifdef X_NOT_POSIX + signal(SIGTERM, sigCatch); signal(SIGQUIT, sigCatch); signal(SIGINT, sigCatch); signal(SIGHUP, sigCatch); *************** *** 440,445 **** --- 442,448 ---- sigemptyset(&sa.sa_mask); sa.sa_flags = 0; /* do not set SA_RESTART */ + sigaction(SIGTERM, &sa, NULL); sigaction(SIGQUIT, &sa, NULL); sigaction(SIGINT, &sa, NULL); sigaction(SIGHUP, &sa, NULL); *************** *** 457,462 **** --- 460,466 ---- ) pid = wait(NULL); } + signal(SIGTERM, SIG_IGN); signal(SIGQUIT, SIG_IGN); signal(SIGINT, SIG_IGN); signal(SIGHUP, SIG_IGN);