Skip to content
This repository
Browse code

forkserver: fix wrong detection of closed connection

git-svn-id: http://svn.perl.org/qpsmtpd/trunk@954 958fd67b-6ff1-0310-b445-bb7760255be9
  • Loading branch information...
commit bd7609804f424d8020f6dc0bce2789fe227bb324 1 parent fd57e6b
vetinari authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  qpsmtpd-forkserver
2  qpsmtpd-forkserver
@@ -307,7 +307,6 @@ while (1) {
307 307 # dup to STDIN/STDOUT
308 308 POSIX::dup2(fileno($client), 0);
309 309 POSIX::dup2(fileno($client), 1);
310   - close $client;
311 310
312 311 $qpsmtpd->start_connection
313 312 (
@@ -320,6 +319,7 @@ while (1) {
320 319
321 320 $qpsmtpd->run_hooks("post-connection");
322 321 $qpsmtpd->connection->reset;
  322 + close $client;
323 323 exit; # child leaves
324 324 }
325 325 }

0 comments on commit bd76098

Please sign in to comment.
Something went wrong with that request. Please try again.