[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54444] Octave CLI doesn't terminate at sigter
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #54444] Octave CLI doesn't terminate at sigterm until <ENTER> pressed at prompt |
Date: |
Fri, 11 Sep 2020 11:55:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #15, bug #54444 (project octave):
We could just have Octave call exit in the signal handler immediately when the
TERM signal arrives, but that would skip the usual shutdown procedure and that
doesn't seem like the best behavior. So, we just have the signal handler set
a global variable and respond to that when it is safe to do so (at a place
where octave_quit is called). So typically Octave does not respond to signals
while it is waiting for input or for a library function to return (see, for
example, bug #56828 or bug #37795). It only works with readline because the
readline function that waits for user input also allows us to periodically
check for events.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54444>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/