about summary refs log tree commit homepage
path: root/xt/create-many-inboxes.t
diff options
context:
space:
mode:
Diffstat (limited to 'xt/create-many-inboxes.t')
-rw-r--r--xt/create-many-inboxes.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/xt/create-many-inboxes.t b/xt/create-many-inboxes.t
index 0c2de40d..f44334cc 100644
--- a/xt/create-many-inboxes.t
+++ b/xt/create-many-inboxes.t
@@ -68,7 +68,7 @@ my @children;
 for my $i (1..$nproc) {
         my ($r, $w);
         pipe($r, $w) or BAIL_OUT $!;
-        my $pid = fork;
+        my $pid = fork // BAIL_OUT "fork: $!";
         if ($pid == 0) {
                 close $w;
                 while (my $i = <$r>) {
@@ -77,7 +77,6 @@ for my $i (1..$nproc) {
                 }
                 _exit(0);
         }
-        defined $pid or BAIL_OUT "fork: $!";
         close $r or BAIL_OUT $!;
         push @children, [ $w, $pid ];
         $w->autoflush(1);