octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51903] Ctrl-Z causes multiple "^Z" echos at o


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51903] Ctrl-Z causes multiple "^Z" echos at octave prompt
Date: Fri, 26 Oct 2018 02:18:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Update of bug #51903 (project octave):

                  Status:               Confirmed => Patch Submitted        

    _______________________________________________________

Follow-up Comment #17:

The attached patch works for me.  I'm not sure that it's the best
implementation, but it's a starting point.  The idea is to block SIGTSTP in
all threads except the interpreter, and to also unblock it for any processes
we create.  I didn't add SIGTSTP to the list of async signals in
signal-wrappers.c because then it would be unblocked in the thread that
watches signals and only delivered with a delay (set a global variable, check
it when octave_quit() is called).  The nice thing about this method is that we
don't have to install our own signal handler for SIGTSTP that might interfere
with the one readline installs.


(file #45304)
    _______________________________________________________

Additional Item Attachment:

File name: tstp-diffs.txt                 Size:1 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?51903>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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