forkserver: fix wrong detection of closed connection

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@954 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Hanno Hecker 2008-10-24 17:18:08 +00:00 committed by Ask Bjørn Hansen
parent 639c03357d
commit eff638dd79

View File

@ -307,7 +307,6 @@ while (1) {
# dup to STDIN/STDOUT # dup to STDIN/STDOUT
POSIX::dup2(fileno($client), 0); POSIX::dup2(fileno($client), 0);
POSIX::dup2(fileno($client), 1); POSIX::dup2(fileno($client), 1);
close $client;
$qpsmtpd->start_connection $qpsmtpd->start_connection
( (
@ -320,6 +319,7 @@ while (1) {
$qpsmtpd->run_hooks("post-connection"); $qpsmtpd->run_hooks("post-connection");
$qpsmtpd->connection->reset; $qpsmtpd->connection->reset;
close $client;
exit; # child leaves exit; # child leaves
} }
} }