go-issue-call-go-in-c-signal-handler

module
v0.0.0-...-cd403a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: MIT

README

go-issue-call-go-in-c-signal-handler

This repository contains an example of the problem

test

  • 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

binary

Execute as a binary

  • signal.TestCHandlerCalledByCSignal is executed
  • signal.TestGoHandlerCalledByCSignal is commented out
  • signal.TestGoHandlerCalledByCSignalWithSigAltStack is commented out

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL