]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper.pm: use EINTR-aware recv_cmd
authorEric Wong <e@80x24.org>
Wed, 4 Oct 2023 03:49:30 +0000 (03:49 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Oct 2023 17:46:46 +0000 (17:46 +0000)
The code is already loaded, so there's no point in avoiding it.

lib/PublicInbox/XapHelper.pm

index f90b283d930b7a1dfac48a285ef8f0beaf474f2a..c98708e38ba57df276e2252e73fbc0832e627cbc 100644 (file)
@@ -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;