help-bash
[Top][All Lists]
Advanced

[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>



reply via email to

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