diff options
author | Eric Wong <e@yhbt.net> | 2020-01-10 09:14:19 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-11 06:32:08 +0000 |
commit | 9f5a583694396f84056b9d92255bba0197b52bc8 (patch) | |
tree | efece7a24babf0bfa9ad0f31abab5a119ce384ff /lib/PublicInbox/TestCommon.pm | |
parent | 6d576feb27625abc36675b7b466265d4f06b2f26 (diff) | |
download | public-inbox-9f5a583694396f84056b9d92255bba0197b52bc8.tar.gz |
Most spawn and popen_rd callers die on failure to spawn, anyways, and some are missing checks entirely. This saves us a bunch of verbose error-checking code in callers. This also makes popen_rd more consistent, since it already dies on pipe creation failures.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index d6d1e939..b3c95612 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -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: $!"; |