]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/TestCommon.pm
spawn (and thus popen_rd) die on failure
[public-inbox.git] / lib / PublicInbox / TestCommon.pm
index d6d1e9394937c1ea652ccb06b52b41d82cc06470..b3c9561251e1ce4bf3157aea76866d8f0fbaf2e1 100644 (file)
@@ -215,7 +215,6 @@ sub run_script ($;$$) {
                require PublicInbox::Spawn;
                my $cmd = [ key2script($key), @argv ];
                my $pid = PublicInbox::Spawn::spawn($cmd, $env, $spawn_opt);
-               defined($pid) or die "spawn: $!";
                if (defined $pid) {
                        my $r = waitpid($pid, 0);
                        defined($r) or die "waitpid: $!";