Ignoring/blocking SIGPIPE signals in multi-threaded linux program Ignoring/blocking SIGPIPE signals in multi-threaded linux program unix unix

Ignoring/blocking SIGPIPE signals in multi-threaded linux program


After some investigation, I found out the solution to it. I had to do
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
after the each fork() calls and before exec() in the grand child. This caused SIGKILL to not get blocked.