golang/go

os/signal: No access to the siginfo_t struct

Open

#9764 aperta il 3 feb 2015

Vedi su GitHub
 (16 commenti) (1 reazione) (1 assegnatario)Go (19.008 fork)batch import
FeatureRequestcompiler/runtimehelp wanted

Metriche repository

Star
 (133.883 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor