I have a process that spawn a bash command with system() while the signal mask has all the signals blocked. This cannot be fixed easily.
The bash command eventually execs into a process. The all blocked signal mask is inherited from the original process through bash to the final process, so in the end I get a process that is "immune" to all the signals (except of course SIGKILL, SIGSTOP, etc).
The workaround would be resetting sigprocmask from bash, but I cannot find any related command. Is it possible to do?
bashscript that you can modify? What is the exact call tosysteminvolved?