about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-12 09:32:39 +0000
committerEric Wong <e@80x24.org>2016-05-12 09:32:39 +0000
commita6e0d5634e3e8076745b47c32cd81e6a5a60bbc4 (patch)
tree1d4f27a6ec487b3c8ab2940e5e87a2529d101094 /lib/PublicInbox
parent8dfd3da2cb7967fcb52dcd816a6e52d143684061 (diff)
downloadpublic-inbox-a6e0d5634e3e8076745b47c32cd81e6a5a60bbc4.tar.gz
We can maintain the client HTTP connection if the process exited
with failure as long as we terminated our own response properly.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index 020b0886..abb70dfa 100644
--- a/lib/PublicInbox/GitHTTPBackend.pm
+++ b/lib/PublicInbox/GitHTTPBackend.pm
@@ -259,10 +259,7 @@ sub serve_smart {
                 if (defined $pid) {
                         my $e = $pid == waitpid($pid, 0) ?
                                 $? : "PID:$pid still running?";
-                        if ($e) {
-                                err($env, "git http-backend ($git_dir): $e");
-                                drop_client($env);
-                        }
+                        err($env, "git http-backend ($git_dir): $e") if $e;
                 }
                 return unless $res;
                 my $dumb = serve_dumb($cgi, $git, $path);