aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/uwm/files/patch-aj
blob: a2b090396e928a1efbdbbac1eeacb48a8374d569 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
$FreeBSD$
$NetBSD: patch-aj,v 1.1 2000/01/19 07:24:07 itohy Exp $

--- Menu.c.orig Sat Oct  1 09:41:13 1988
+++ Menu.c  Wed Sep 25 14:50:55 2002
@@ -84,6 +84,14 @@
    char **oldenviron;
    extern char **environ, **newenviron;
 
+#ifdef SIGCHLD
+   /*
+    * Children are now handled in uvm.c, but make sure
+    * uwm blocks :-) for compatibility with other systems.
+    */
+
+   signal(SIGCHLD, SIG_DFL);
+#endif
    oldenviron = environ;
    environ = newenviron;
    if ((pid = vfork()) == 0) {
@@ -105,8 +113,11 @@
        ;
    if (w == -1)
        status = -1;
-   signal(SIGINT, istat);
-   signal(SIGQUIT, qstat);
+   signal(SIGINT, (void *)istat);
+   signal(SIGQUIT, (void *)qstat);
+#ifdef SIGCHLD
+   clear_children();
+#endif
    return(status);
 }
 
@@ -129,7 +140,6 @@
     char *hlname;          /* Pointer to hi-liter name. */
     char *strbuf;          /* String buffer for IsTextNL. */
     Bool checkMotion = TRUE;       /* To Restore Cursor Position */
-    char *malloc();
     int funcbutton;            /* function button for window select */
 
     /*