[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] readline does not always handle SIGTERM on reboot
From: |
john smith |
Subject: |
Re: [Help-bash] readline does not always handle SIGTERM on reboot |
Date: |
Sun, 8 Apr 2018 00:03:48 +0200 |
I discovered that I can kill current session of bash with the following:
(sleep 1; kill $$) &
Only in such situation is rl_signal_handler() called, errno is set to
EINTR in rl_getc() and EOF is returned. I just don't understand why
rl_signal_handler() is not called when this is done:
kill $$
Instead, only sigterm_sighandler() is called. I checked that
rl_set_signals() is called each time after pressing Enter key so bash
should leave after doing the above too?
--
<address@hidden>
- [Help-bash] readline does not always handle SIGTERM on reboot, john smith, 2018/04/06
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, Chet Ramey, 2018/04/06
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, john smith, 2018/04/06
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, Chet Ramey, 2018/04/09
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, john smith, 2018/04/09
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, Chet Ramey, 2018/04/09
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, john smith, 2018/04/09
- Re: [Help-bash] readline does not always handle SIGTERM on reboot, Chet Ramey, 2018/04/09