mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
43 lines
1008 B
Plaintext
43 lines
1008 B
Plaintext
$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 */
|
|
|
|
/*
|