diff options
author | Eric Wong <e@80x24.org> | 2021-01-13 19:06:15 -1200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-14 23:14:08 +0000 |
commit | 39d44555e3f04c97e98c7f5d3538bbba6a19656b (patch) | |
tree | 034da2d3634118b076b95e126f73f875795ddb3a /t | |
parent | 7dd5b28cb9bdcfa262ddad47d7f033f600675dc3 (diff) | |
download | public-inbox-39d44555e3f04c97e98c7f5d3538bbba6a19656b.tar.gz |
The new test ensures consistency between oneshot and client/daemon users. Cancelling an in-progress result now also stops xsearch workers to avoid wasted CPU and I/O. Note the lei->atfork_child_wq usage changes, it is to workaround a bug in Perl 5: http://nntp.perl.org/group/perl.perl5.porters/258784 <CAHhgV8hPbcmkzWizp6Vijw921M5BOXixj4+zTh3nRS9vRBYk8w@mail.gmail.com> This switches the internal protocol to use SOCK_SEQPACKET AF_UNIX sockets to prevent merging messages from the daemon to client to run pager and kill/exit the client script.
Diffstat (limited to 't')
-rw-r--r-- | t/lei.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -215,7 +215,7 @@ SKIP: { # real socket skip 'Socket::MsgHdr or Inline::C missing or unconfigured', $nr; local $ENV{XDG_RUNTIME_DIR} = "$home/xdg_run"; - my $sock = "$ENV{XDG_RUNTIME_DIR}/lei/$nfd.sock"; + my $sock = "$ENV{XDG_RUNTIME_DIR}/lei/$nfd.seq.sock"; ok($lei->('daemon-pid'), 'daemon-pid'); is($err, '', 'no error from daemon-pid'); |