I've had this in my tree for (literally) years.  I thought I had
submitted it some time ago but perhaps not.  The diff is needed due
to a change in semantics of ignoring SIGCHLD made years ago.  Instead
of ignoring it we just want to set it to the default value (which
is to discard the signal).

 - todd

Index: audio/xmcd/patches/patch-cda_d_cda_c
===================================================================
RCS file: /home/cvs/openbsd/ports/audio/xmcd/patches/patch-cda_d_cda_c,v
retrieving revision 1.2
diff -u -r1.2 patch-cda_d_cda_c
--- audio/xmcd/patches/patch-cda_d_cda_c        28 Mar 2003 22:39:10 -0000      
1.2
+++ audio/xmcd/patches/patch-cda_d_cda_c        6 May 2003 18:39:23 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-cda_d_cda_c,v 1.2 2003/03/28 22:39:10 david Exp $
---- cda_d/cda.c.orig   Sat Feb  5 08:26:38 2000
-+++ cda_d/cda.c        Wed Aug  8 01:32:14 2001
+--- cda_d/cda.c.orig   Sat Feb  5 00:26:38 2000
++++ cda_d/cda.c        Tue May  6 12:36:11 2003
 @@ -349,23 +349,52 @@ cda_init(curstat_t *s)
  STATIC void
  cda_start(curstat_t *s)
@@ -92,6 +92,15 @@
                        (void) fprintf(errfp, "%s\n", emsgp);
                        return 1;
                }
+@@ -3657,7 +3686,7 @@ cda_daemon(curstat_t *s)
+       MEM_FREE(emsgp);
+ #endif        /* NOMKTMPDIR */
+ 
+-      (void) signal(SIGCHLD, SIG_IGN);
++      (void) signal(SIGCHLD, SIG_DFL);
+ 
+       /* Become a daemon process */
+       switch (FORK()) {
 @@ -3817,12 +3846,14 @@ main(int argc, char **argv)
        errfp = stderr;
        s = &status;

Reply via email to