This repository contains an example of the problem
- ExampleTestCHandlerCalledByCSignal
calls c function in c signal handler, passed
- ExampleTestGoHandlerCalledByCSignal
calls go function in c signal handler, blocked forever
- ExampleTestGoHandlerCalledByCSignalWithSigAltStack
calls go function in c signal handler, with sigaltstack called before sigaction, blocked forever
Execute as a binary
signal.TestCHandlerCalledByCSignal
is executedsignal.TestGoHandlerCalledByCSignal
is commented outsignal.TestGoHandlerCalledByCSignalWithSigAltStack
is commented out