Simplify the signal handler.

An asynchronus signal handler has some limitations. So it should be
simple. This patch moves some lines in the signal handler to a general
function.

As a reuslt, the structure ExitChildInfo is also changed to have
information other than child's exit. So the name is changed.