trap_signal_and_wait_children

Function trap_signal_and_wait_children 

Source
pub fn trap_signal_and_wait_children() -> Result<(), ShellError>
Expand description

Traps SIGINT and SIGTERM, waits for child process completion, and exits the current process.

It must be invoked before any thread is launched, because it internally uses pthread_sigmask.