Add setupSignalHandlerForSIGCHILD() function.

This function is process to open handler and set callback function.
Add return value.
Fix typo.

sgiaction ->
sigaction
 ^^
Add missing return.