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:
Rather than needing a super portable way to do this, could we simply add access to it through /x/sys/unix because of its specificity? It's really dragging down a project of mine to not have access to this struct in any way.
Please correct me if I'm mistaken, but it seems the SignalfdSigInfo struct is equivalent to siginfo_t - only missing a few fields, including si_sigval which is what I need. Syscall is deprecated in favor of /x/sys for OS specificity, that is why I bring it up. Not sure why si_sigval wasn't included, or what it would take to add it, but with this in mind I'm not sure why we'd need a 'portable API' for this.