added call on sigchild() after fork to fix retrofit signals
authorKurt A. Shoens <kurt@ucbvax.Berkeley.EDU>
Tue, 27 Jul 1982 08:08:33 +0000 (00:08 -0800)
committerKurt A. Shoens <kurt@ucbvax.Berkeley.EDU>
Tue, 27 Jul 1982 08:08:33 +0000 (00:08 -0800)
SCCS-vsn: usr.bin/mail/edit.c 2.2

usr/src/usr.bin/mail/edit.c

index f024a2e..fce69ca 100644 (file)
@@ -10,7 +10,7 @@
  * Perform message editing functions.
  */
 
  * Perform message editing functions.
  */
 
-static char *SccsId = "@(#)edit.c      2.1 %G%";
+static char *SccsId = "@(#)edit.c      2.2 %G%";
 
 /*
  * Edit a message list.
 
 /*
  * Edit a message list.
@@ -144,6 +144,7 @@ edit1(msgvec, ed)
                        goto out;
                }
                if (pid == 0) {
                        goto out;
                }
                if (pid == 0) {
+                       sigchild();
                        if (sigint != SIG_IGN)
                                sigsys(SIGINT, SIG_DFL);
                        if (sigquit != SIG_IGN)
                        if (sigint != SIG_IGN)
                                sigsys(SIGINT, SIG_DFL);
                        if (sigquit != SIG_IGN)