check_child2 - The routine returns NO_ERROR if the named child process is still alive,
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
PROCESS_IS_DEAD if it has died, INTERRUPTED if the wait was interrupted (not
likely in this case) and ERROR if there are problems with the call. Probably
the most likely cause of ERROR is if the process is not a child process of
the caller. In addition, if the child is dead, then the argument passed to
exit2() is put into the location exit_argument_ptr, OR the signal causing
termination is put into the location termination_signal_ptr. Only one of
these two is relavent. The other is set to NOT_SET.
Unlike kjb_waitpid/kjb_waitpid2, this routine returns immediately in all
circumstances. If is necessary to wait until the child changes status,
then one of these functions should be used.
kjb_waitpid, kjb_waitpid2, check_child, terminate_child_process
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.