From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6E5AA1F9F4 for ; Wed, 22 Sep 2021 02:24:35 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/7] script/lei: describe purpose of sleep loop Date: Wed, 22 Sep 2021 02:24:31 +0000 Message-Id: <20210922022435.17835-4-e@80x24.org> In-Reply-To: <20210922022435.17835-1-e@80x24.org> References: <20210922022435.17835-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It looks dumb, but I'm not about to take a runtime penalty to use signalfd|EVFILT_SIGNAL, here, either. --- script/lei | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);