Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: long-standing tty related issue: wrapped Emacs not suspended



On Sat, Sep 22, 2018 at 08:54:48PM +0200, Vincent Lefevre wrote:
> A SIGCONT handler can be useful for programs running under
> Grid Engine (together with a SIGUSR1 handler, as this signal
> is sent shortly before SIGSTOP).

This assumes that you will always receive USR1 before every STOP, but
since STOP is uncatchable like KILL, this may not always happen. Imagine
an external process sendind it without sending USR1 first, and suddenly your
assumption is no longer true.

Granted, edge cases like this are rare, but they do happen. Signals
are things that should be given a bit more consideration than usual when
dealing with things like handlers.

-- 
Cheers,
Joey Pabalinas

Attachment: signature.asc
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author