You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's the missing piece for full SIGCHLD handling using signal-hook. We already have Origin::Chld for detecting child exit, child death, child stop, etc.
The way libc exposes siginfo_t is a bit weird, but I see that signal-hook has a bit of C code that handles the extraction, presumably so as to avoid libcs weirdness, so I think it would be reasonably straightforward.
I could make a PR for this if desired.
The text was updated successfully, but these errors were encountered:
LunarLambda
added a commit
to LunarLambda/signal-hook
that referenced
this issue
Nov 13, 2024
Problem: there is no way to get the exit status or signal of a child
process when handling SIGCHLD
Solution: expose `siginfo_t`'s `si_status` field in `Process` when
extracting info for SIGCHLD
closesvorner#165
It's the missing piece for full
SIGCHLD
handling usingsignal-hook
. We already haveOrigin::Chld
for detecting child exit, child death, child stop, etc.The way
libc
exposessiginfo_t
is a bit weird, but I see thatsignal-hook
has a bit of C code that handles the extraction, presumably so as to avoidlibc
s weirdness, so I think it would be reasonably straightforward.I could make a PR for this if desired.
The text was updated successfully, but these errors were encountered: