I can capture signals in go with signal package but how can I capture signals from 34 (SIGRTMIN) to 64 (SIGRTMAX) inclusively (link)? Golang calls them "signal 34", "signal 64" etc. but that's beyond the point. When I run "pkill -34" I want my application to notice it.
I can capture them when I capture all signals:
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan)
However I don't want to catch all signals, I want only those that I mentioned before.
I'm also aware that I can capture individual signals like:
signal.Notify(sigChan, os.Interrupt, syscall.SIGPOOL, syscall.SIGCLD ...)
But that requires signal constants and I can't find constants that correspond to signals that I want to capture. Any ideas?