no longer compile config.c read only since we futz the
[unix-history] / usr / src / usr.bin / mail / edit.c
index f024a2e..613a8ff 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.3 %G%";
 
 /*
  * Edit a message list.
 
 /*
  * Edit a message list.
@@ -108,7 +108,7 @@ edit1(msgvec, ed)
                        perror(edname);
                        goto out;
                }
                        perror(edname);
                        goto out;
                }
-               if (send(mp, obuf) < 0) {
+               if (send(mp, obuf, 0) < 0) {
                        perror(edname);
                        fclose(obuf);
                        remove(edname);
                        perror(edname);
                        fclose(obuf);
                        remove(edname);
@@ -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)