New way to connect a job_t.
[apps/madmutt.git] / lib-sys / mutt_signal.c
index bdb8577..2728656 100644 (file)
@@ -28,19 +28,12 @@ static void exit_handler (int sig)
     exit(0);
 }
 
     exit(0);
 }
 
-static void chld_handler(int sig __attribute__((unused)))
-{
-  /* empty */
-}
-
 static void sighandler (int sig)
 {
   int save_errno = errno;
 
   switch (sig) {
   case SIGTSTP:                /* user requested a suspend */
 static void sighandler (int sig)
 {
   int save_errno = errno;
 
   switch (sig) {
   case SIGTSTP:                /* user requested a suspend */
-    if (!option (OPTSUSPEND))
-      break;
     IsEndwin = isendwin ();
     curs_set (1);
     if (!IsEndwin)
     IsEndwin = isendwin ();
     curs_set (1);
     if (!IsEndwin)
@@ -57,6 +50,10 @@ static void sighandler (int sig)
     SigWinch = 1;
     break;
 
     SigWinch = 1;
     break;
 
+  case SIGCHLD:
+    SigChild = 1;
+    break;
+
   case SIGINT:
     SigInt = 1;
     break;
   case SIGINT:
     SigInt = 1;
     break;
@@ -102,7 +99,6 @@ void mutt_signal_initialize (void)
   /* POSIX doesn't allow us to ignore SIGCHLD,
    * so we just install a dummy handler for it
    */
   /* POSIX doesn't allow us to ignore SIGCHLD,
    * so we just install a dummy handler for it
    */
-  act.sa_handler = chld_handler;
   /* don't need to block any other signals here */
   sigemptyset (&act.sa_mask);
   /* we don't want to mess with stopped children */
   /* don't need to block any other signals here */
   sigemptyset (&act.sa_mask);
   /* we don't want to mess with stopped children */