diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-11-03 18:39:49 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-11-03 18:39:49 +0000 |
commit | b0e14d55f4a35abce6561c1623556a0a42677aea (patch) | |
tree | 88963317eb60d0202ae37a55c2f02b8ed039301b /gacopyz/gacopyz.c | |
parent | f53d4056fef3b658536f370cb0582a247bb521f3 (diff) | |
download | mailfromd-b0e14d55f4a35abce6561c1623556a0a42677aea.tar.gz mailfromd-b0e14d55f4a35abce6561c1623556a0a42677aea.tar.bz2 |
(gacopyz_run): Update invocation of gacopyz_cleanup_children.
git-svn-id: file:///svnroot/mailfromd/trunk@773 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'gacopyz/gacopyz.c')
-rw-r--r-- | gacopyz/gacopyz.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gacopyz/gacopyz.c b/gacopyz/gacopyz.c index 64a4c379..5bb7f89d 100644 --- a/gacopyz/gacopyz.c +++ b/gacopyz/gacopyz.c @@ -1328,12 +1328,11 @@ gacopyz_handle_connection(gacopyz_conn_t conn) pid_t pid = fork(); if (pid == -1) { gacopyz_log(conn, SMI_LOG_ERR, - "fork() failed: %s", - strerror(errno)); + "fork() failed: %s", + strerror(errno)); return MI_FAILURE; } if (pid > 0) { - gacopyz_register_child(conn, pid); close(fd); return MI_SUCCESS; } @@ -1379,7 +1378,7 @@ gacopyz_run(gacopyz_conn_t conn) conn->desc.xxfi_idle(conn); } else gacopyz_handle_connection(conn); - gacopyz_cleanup_children(); + gacopyz_cleanup_children(conn); } gacopyz_cleanup_conn(conn); return MI_SUCCESS; |