]> andersk Git - moira.git/commitdiff
Ignore SIGPIPE
authordanw <danw>
Mon, 6 Apr 1998 15:59:21 +0000 (15:59 +0000)
committerdanw <danw>
Mon, 6 Apr 1998 15:59:21 +0000 (15:59 +0000)
server/mr_main.c

index 1a4d0c62a1757f3a908762d43f6f0575d6763545..1c662259ab3f88a5ed81bad66bef2093d8d4ce85 100644 (file)
@@ -419,6 +419,13 @@ void mr_setup_signals(void)
       exit(1);
     }
 
+  action.sa_handler = SIG_IGN;
+  if (sigaction(SIGPIPE, &action, NULL) < 0)
+    {
+      com_err(whoami, errno, "Unable to establish signal handlers.");
+      exit(1);
+    }
+
   action.sa_handler = reapchild;
   sigaddset(&action.sa_mask, SIGCHLD);
   if (sigaction(SIGCHLD, &action, NULL) < 0)
This page took 0.038244 seconds and 5 git commands to generate.