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:
parent
639c03357d
commit
eff638dd79
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user