about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/spawn.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/spawn.t b/t/spawn.t
index fd669e22..a0019202 100644
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -29,7 +29,7 @@ elsif ($pid > 0) {
         $? == 0 or die "child err: $>";
         $SIG{CHLD} = sub { print "HI\n"; exit };
         print "RDY $$\n";
-        sleep while 1;
+        select(undef, undef, undef, 0.01) while 1;
 }
 EOF
         my $oldset = PublicInbox::Sigfd::block_signals();