blob: 53ad6b0e811fce547c396bb392861d36755a44e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-aj,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
--- Menu.c.orig Sat Oct 1 18:41:13 1988
+++ Menu.c Mon Jan 17 22:09:10 2000
@@ -84,6 +84,14 @@
char **oldenviron;
extern char **environ, **newenviron;
+#ifdef SIGCHLD
+ /*
+ * Children are now handled in uwm.c, but make sure
+ * uwm blocks :-) for compatibility with other systems.
+ */
+
+ signal(SIGCHLD, SIG_DFL);
+#endif
oldenviron = environ;
environ = newenviron;
if ((pid = vfork()) == 0) {
@@ -107,6 +115,9 @@
status = -1;
signal(SIGINT, istat);
signal(SIGQUIT, qstat);
+#ifdef SIGCHLD
+ clear_children();
+#endif
return(status);
}
|