diff options
author | Eric Wong <e@80x24.org> | 2021-10-14 13:16:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-15 02:23:22 +0000 |
commit | cdc569fa2ffcf57e1ebd37621d4d07a9b303c38f (patch) | |
tree | afdd8d1f5ddae5bda120869d398e24546e233b33 /script/lei | |
parent | 25088c21b46b5d97b29ecb1d25b0342f37133b58 (diff) | |
download | public-inbox-cdc569fa2ffcf57e1ebd37621d4d07a9b303c38f.tar.gz |
This may save us a small bit of startup time since there's fewer args and opcodes should be smaller.
Diffstat (limited to 'script/lei')
-rwxr-xr-x | script/lei | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -107,8 +107,8 @@ my $buf = join("\0", scalar(@ARGV), @ARGV); while (my ($k, $v) = each %ENV) { $buf .= "\0$k=$v" } $buf .= "\0\0"; $send_cmd->($sock, [0, 1, 2, fileno($dh)], $buf, MSG_EOR) or die "sendmsg: $!"; -$SIG{TSTP} = sub { $send_cmd->($sock, [], 'STOP', MSG_EOR); kill 'STOP', $$ }; -$SIG{CONT} = sub { $send_cmd->($sock, [], 'CONT', MSG_EOR) }; +$SIG{TSTP} = sub { send($sock, 'STOP', MSG_EOR); kill 'STOP', $$ }; +$SIG{CONT} = sub { send($sock, 'CONT', MSG_EOR) }; my $x_it_code = 0; while (1) { |