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

Re: Trapping Real Time Signals in ZSH



On Wed, Jul 21, 2021 at 7:31 PM <bagnaramatt@xxxxxxxxx> wrote:
>
> In bash the trap builtin is able to handle all signals including SRTMIN-
> SIGRTMAX. In ZSH the kill builtin dos not provide the ability to utilize all
> of there signals. Is there any supported way to handle trapping real-time
> signals in ZSH?

Currently there is not.  The scripts in the build process that extract
signal names from the system headers do not recognize SIGRTMIN or or
SIGRTMAX, and the faux signals SIGZERR and SIGDEBUG may overlap with
the range of realtime signals.

However, it's possible to send any of these signals by number with the
kill builtin, even though "kill -l" doesn't list them.




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