aboutsummaryrefslogtreecommitdiff
path: root/gacopyz
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-11-05 13:31:21 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-11-05 13:31:21 +0000
commitdedb584292bfe6449230c0484fd7a8d74e96543f (patch)
tree37166a6c9a6b5c6f8e11fd36feccd94f8d0ac73f /gacopyz
parentd8a12459cfb55031df88ad567d82723e637fa6bf (diff)
downloadmailfromd-dedb584292bfe6449230c0484fd7a8d74e96543f.tar.gz
mailfromd-dedb584292bfe6449230c0484fd7a8d74e96543f.tar.bz2
(gacopyz_cleanup_conn): Ignore SIGTERM while stopping children.
git-svn-id: file:///svnroot/mailfromd/trunk@788 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'gacopyz')
-rw-r--r--gacopyz/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gacopyz/proc.c b/gacopyz/proc.c
index 4118fe4f..08b84b42 100644
--- a/gacopyz/proc.c
+++ b/gacopyz/proc.c
@@ -71,9 +71,9 @@ gacopyz_cleanup_children(gacopyz_conn_t conn)
void
gacopyz_cleanup_conn(gacopyz_conn_t conn)
{
- kill(-getpid(), SIGTERM);
+ signal(SIGTERM, SIG_IGN);
+ kill(0, SIGTERM);
gacopyz_cleanup_children(conn);
- kill(-getpid(), SIGKILL);
}
static RETSIGTYPE

Return to:

Send suggestions and report system problems to the System administrator.