It's a possibility that rewriteing global variables may be performed by singal handler,So set signal handlers are reset to SIG_DFL. In order to prevent race condition, it is necessary to mask signals once in the parent process before fork.
I'm wrong, we don't have to care about race condition in this case when we don't use vfork().