From: Eric Wong Date: Wed, 22 Sep 2021 02:24:31 +0000 (+0000) Subject: script/lei: describe purpose of sleep loop X-Git-Tag: v1.7.0~298 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=6598465d6135f5c697aee075c1c95cdbcd16f255 script/lei: describe purpose of sleep loop It looks dumb, but I'm not about to take a runtime penalty to use signalfd|EVFILT_SIGNAL, here, either. --- diff --git a/script/lei b/script/lei index 399296ba..bc437798 100755 --- a/script/lei +++ b/script/lei @@ -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);