]> Sergey Matveev's repositories - public-inbox.git/commitdiff
script/lei: describe purpose of sleep loop
authorEric Wong <e@80x24.org>
Wed, 22 Sep 2021 02:24:31 +0000 (02:24 +0000)
committerEric Wong <e@80x24.org>
Wed, 22 Sep 2021 05:21:20 +0000 (05:21 +0000)
It looks dumb, but I'm not about to take a runtime penalty to
use signalfd|EVFILT_SIGNAL, here, either.

script/lei

index 399296ba1a8d453597e93dc0cb9dfa9b7c99b916..bc43779821e7bbb26026dd405505579f0dd788a0 100755 (executable)
@@ -137,6 +137,6 @@ while (1) {
 $sigchld->();
 if (my $sig = ($x_it_code & 127)) {
        kill $sig, $$;
-       sleep(1) while 1;
+       sleep(1) while 1; # no self-pipe/signalfd, here, so we loop
 }
 exit($x_it_code >> 8);