diff options
author | John Denker <jsd@av8n.com> | 2012-06-03 22:46:53 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-13 18:39:07 -0700 |
commit | 867c1d9af13b70548056460339e4af9b29940e53 (patch) | |
tree | 1ea5e140ab1ba915100c0bf27d44cb307804c411 | |
parent | a560c4ac596a75492e77378b2cca349c91402e2a (diff) |
qmail-start now does a setpgrp.
This is to facilitate killing qmail-send *and* all
its children, as a group.
-rw-r--r-- | qmail-start.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmail-start.c b/qmail-start.c index 37423b0..24367fc 100644 --- a/qmail-start.c +++ b/qmail-start.c @@ -71,6 +71,8 @@ char **argv; if (pipe(pi5) == -1) die(); if (pipe(pi6) == -1) die(); + setpgrp(); + switch(fork()) { case -1: die(); case 0: |