Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: os/signal: relay POSIX signal values #22676

Closed
xry111 opened this issue Nov 12, 2017 · 2 comments
Closed

proposal: os/signal: relay POSIX signal values #22676

xry111 opened this issue Nov 12, 2017 · 2 comments

Comments

@xry111
Copy link

xry111 commented Nov 12, 2017

POSIX signal values (union sigval) is an application defined extra parameter of signals. It could be
delivered by sigqueue, or timer_create etc. In some situations this is very useful. But now we can't get it in Go. I've tried to implement this as an external package but it seems impossible.

@gopherbot gopherbot added this to the Proposal milestone Nov 12, 2017
@rsc
Copy link
Contributor

rsc commented Nov 13, 2017

This really doesn't fit into os/signal. It doesn't seem impossible, though: if you really need to handle that information you can use cgo to register a signal handler in C and handle those from the C side.

@xry111
Copy link
Author

xry111 commented Nov 14, 2017

Thanks for the suggestion. I'll use cgo to do that.

@xry111 xry111 closed this as completed Nov 14, 2017
@golang golang locked and limited conversation to collaborators Nov 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants