]> andersk Git - moira.git/commitdiff
sun zombie fix
authormar <mar>
Mon, 6 Apr 1992 17:53:24 +0000 (17:53 +0000)
committermar <mar>
Mon, 6 Apr 1992 17:53:24 +0000 (17:53 +0000)
gdb/gdb_fserv.c

index 1a789912444ec6c12f5d051e93f3fafabb75af13..c1089c024e057e8e25b48c9e2d171193293c1ce0 100644 (file)
@@ -165,7 +165,11 @@ int (*validate)();
 /*     Called on SIGCHILD to reap all dead children.
 /*     
 /************************************************************************/
+#ifndef sun
 int
+#else
+void
+#endif
 gdb_reaper()
 {
        union wait status;
@@ -198,5 +202,14 @@ gdb_reaper()
 int
 g_do_signals()
 {
-       (void) signal(SIGCHLD, gdb_reaper);
+#ifdef sun
+    struct sigvec act;
+
+    act.sv_handler = gdb_reaper;
+    act.sv_mask = 0;
+    act.sv_flags = 0;
+    (void) sigvec(SIGCHLD, &act, NULL);
+#else /* sun */
+    (void) signal(SIGCHLD, gdb_reaper);
+#endif 
 }
This page took 0.187458 seconds and 5 git commands to generate.