os/signal: No access to the siginfo_t struct #9764
Open
Comments
We'd need to figure out a nice, portable API to do this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The siginfo_t struct that is delivered with signals contains various useful information about the signal. In some cases, this information is necessary to implement the kernel API of various features. For example, fcntl(F_SETLEASE) requires that your process receive a SIGIO when the lock is broken, and the si_fd field in the siginfo_t struct tells you what filehandle the kernel is notifying your process about.
Please provide an interface that will allow Go code to access the information in the siginfo_t struct.
The text was updated successfully, but these errors were encountered: