]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: stop pager early on exit
authorEric Wong <e@80x24.org>
Sat, 12 Jun 2021 00:10:41 +0000 (00:10 +0000)
committerEric Wong <e@80x24.org>
Sun, 13 Jun 2021 17:39:35 +0000 (17:39 +0000)
This is necessary when using "ls-mail-source" on an unreachable
IMAP server.

lib/PublicInbox/LEI.pm

index 833d9c4dde67f2d7c88159c22d6084c8748360db..122045eeef905d0cd38b29a81d8f8bb154ce352f 100644 (file)
@@ -446,6 +446,7 @@ sub x_it ($$) {
        # make sure client sees stdout before exit
        $self->{1}->autoflush(1) if $self->{1};
        dump_and_clear_log();
+       stop_pager($self);
        if ($self->{pkt_op_p}) { # to top lei-daemon
                $self->{pkt_op_p}->pkt_do('x_it', $code);
        } elsif ($self->{sock}) { # to lei(1) client