]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/spawn.t
update copyrights for 2021
[public-inbox.git] / t / spawn.t
index fd669e222e1bd7031e1a13cb7ebd23580930a1c1..552bba3302e8c969610b9759e6addaa07068dae1 100644 (file)
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2015-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -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();