about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-28 23:39:12 +0000
committerEric Wong <e@80x24.org>2016-02-28 23:57:34 +0000
commit89bd3f4826f91647216765534eacfb37267a27a3 (patch)
treec9ce8b8cb98084bdea1eada53e43a57412c2173f /lib
parent15a56c73e3b5c540d1f9d65058c9aba3ff840cdd (diff)
downloadpublic-inbox-89bd3f4826f91647216765534eacfb37267a27a3.tar.gz
Perl may complain about exit not being executed, but not die.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/SpawnPP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SpawnPP.pm b/lib/PublicInbox/SpawnPP.pm
index 1a402e42..288625d0 100644
--- a/lib/PublicInbox/SpawnPP.pm
+++ b/lib/PublicInbox/SpawnPP.pm
@@ -25,7 +25,7 @@ sub public_inbox_fork_exec ($$$$$$) {
                         $ENV{$k} = $v;
                 }
                 exec @$cmd;
-                exit 1;
+                die "exec $cmd->[0] failed: $!\n";
         }
         $pid;
 }