From: Eric Wong Date: Wed, 4 Oct 2023 03:49:30 +0000 (+0000) Subject: xap_helper.pm: use EINTR-aware recv_cmd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9320c6107dc995bab8f740795b2c1e619a120041;p=thirdparty%2Fpublic-inbox.git xap_helper.pm: use EINTR-aware recv_cmd The code is already loaded, so there's no point in avoiding it. --- diff --git a/lib/PublicInbox/XapHelper.pm b/lib/PublicInbox/XapHelper.pm index f90b283d9..c98708e38 100644 --- a/lib/PublicInbox/XapHelper.pm +++ b/lib/PublicInbox/XapHelper.pm @@ -177,12 +177,9 @@ sub recv_loop { my $in = \*STDIN; while (!defined($parent_pid) || getppid == $parent_pid) { PublicInbox::DS::sig_setmask($workerset); - my @fds = $PublicInbox::IPC::recv_cmd->($in, $rbuf, 4096*33); + my @fds = PublicInbox::IPC::recv_cmd($in, $rbuf, 4096*33); scalar(@fds) or exit(66); # EX_NOINPUT - if (!defined($fds[0])) { - next if $!{EINTR}; - die "recvmsg: $!"; - } + die "recvmsg: $!" if !defined($fds[0]); PublicInbox::DS::block_signals(); my $req = bless {}, __PACKAGE__; my $i = 0;