eventcore icon indicating copy to clipboard operation
eventcore copied to clipboard

Access signalfd_siginfo from signal handler

Open BenjaminSchaaf opened this issue 6 years ago • 1 comments

Posix signal handlers come with a lot of useful information, but the only thing currently made available is the signal that was raised. I'm currently dealing with processes and using SIGCHLD to catch when a process has terminated, but I can't get the process ID from the signal handler through the current api.

A quick fix would be just replacing the int with a signalfd_siginfo in the callback, but I'm not sure how that fits with the current design philosophy. Can't test but it shouldn't break Windows builds considering signals aren't implemented there.

BenjaminSchaaf avatar Jan 05 '19 13:01 BenjaminSchaaf