in reply to Re: Managing the fork/execing and reaping of child processes
in thread Managing the fork/execing and reaping of child processes

What you should do is block all signals before forks and to use sigsuspend after forks (or sigwaitinfo).

Replies are listed 'Best First'.
Re^3: Managing the fork/execing and reaping of child processes
by Anonymous Monk on Jul 16, 2015 at 16:35 UTC
    (which might be problematic since non-rt signals are not queued, but I don't know if you actually need that)