Skip to content

Commit

Permalink
add comment about sigaction
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed May 8, 2024
1 parent 41700b8 commit 721c684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/src/shell_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn real_main() -> anyhow::Result<()> {
// WSL starts a single shell under login to make sure that a logind session exists.
// That shell is started with SIGCHLD ignored
// If it is, we are probably that shell and can just skip setting the environment
// sigaction from libc is used here, because the wrapped version from the nix crate does not accept null
let mut act: sigaction = MaybeUninit::zeroed().assume_init();
sigaction(SIGCHLD, PT_NULL as *const sigaction, &mut act);
if act.sa_sigaction == SIG_IGN {
Expand Down

0 comments on commit 721c684

Please sign in to comment.