golang/go

os/signal: No access to the siginfo_t struct

Open

#9,764 opened on Feb 3, 2015

View on GitHub
 (16 comments) (1 reaction) (1 assignee)Go (19,008 forks)batch import
FeatureRequestcompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide