From 3e11b08275331783f4860a590b1555b879c77328 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Jan 2021 19:46:20 +0000 Subject: lei: remove INT/QUIT/TERM handlers, fix daemon EOF The signal handlers on the client side were unnecessary, all we need is to handle socket EOF properly in the daemon by killing xsearch and l2m workers. --- script/lei | 5 ----- 1 file changed, 5 deletions(-) (limited to 'script') diff --git a/script/lei b/script/lei index a4a0217b..8dcea562 100755 --- a/script/lei +++ b/script/lei @@ -81,11 +81,6 @@ Falling back to (slow) one-shot mode while (my ($k, $v) = each %ENV) { $buf .= "\0$k=$v" } $buf .= "\0\0"; $send_cmd->($sock, [ 0, 1, 2, fileno($dh) ], $buf, MSG_EOR); - $SIG{TERM} = $SIG{INT} = $SIG{QUIT} = sub { - my ($sig) = @_; # 'TERM', not an integer :< - $SIG{$sig} = 'DEFAULT'; - kill($sig, $$); # exit($signo + 128) - }; my $x_it_code = 0; while (1) { my (@fds) = $recv_cmd->($sock, $buf, 4096 * 33); -- cgit v1.2.3-24-ge0c7