changeset 47:5f8f0b0e630e

Menu.c: apply patch from pkgsrc.
author ng0@n0.is
date Fri, 03 May 2019 20:01:10 +0000
parents 48b8cc8508b9
children 6128121959a6
files Menu.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Menu.c	Fri May 03 19:54:37 2019 +0000
+++ b/Menu.c	Fri May 03 20:01:10 2019 +0000
@@ -163,6 +163,9 @@
                 status = -1;
         signal (SIGINT, istat);
         signal (SIGQUIT, qstat);
+#ifdef SIGCHLD
+        clear_children ();
+#endif
         return (status);
 }
 
@@ -937,6 +940,7 @@
  * Decrement "MaxColors" if this pixel value has never been used in a
  * menu before.
  */
+static void
 AdjustMaxColors (int pixel)
 {
         register MenuLink *mptr;