bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pending signal after rl_callback_read_char


From: Chet Ramey
Subject: Re: pending signal after rl_callback_read_char
Date: Fri, 30 Sep 2022 11:11:03 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0

On 9/20/22 3:13 PM, Simon Marchi wrote:

I think that it could be fixed in readline by doing the following when
reinstalling the old signal handlers:

  - block signals
  - call RL_CHECK_SIGNALS
  - restore old handlers
  - unblock signals

Readline could probably get most or all of the way there by modifying
CALLBACK_READ_RETURN to call rl_check_signals/RL_CHECK_SIGNALS after
calling rl_clear_signals and before the return. What do you think?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]