Added or modified a lot of comments; made some minor tweaks to white space.
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 8 Jan 2010 21:14:35 +0000 (21:14 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 8 Jan 2010 21:14:35 +0000 (21:14 +0000)
commit696fae93da13d3904a09ad87b6c92cd737963108
tree28a040df183617ff7ebe1030f397bb84741b5ca4
parent9e1b98ac9e0ca4d6762746e11c393806c5f0c3e3
Added or modified a lot of comments; made some minor tweaks to white space.

Eliminated the min_children member of the prefork_child structure.  We
didn't use it for anything, and it made no sense anyway.

Moved the closing of the child's file descriptors into prefork_child_free()
in order to eliminate duplicated code.  Also we were closing two of the
file descriptors twice.

prefork_child_free() now returns void instead of a pointless int.

In reap_children(): reset the child_dead at the beginning of the function
instead of at the end.  Otherwise we could miss a SIGCHLD that occurs during
the function.

Pass NULL as the second parameter to waitpid().  We don't do anything with the
children's return codes, so there's no need to capture them.

Eliminated all calls to osrf_clearbuf() as pointless.

In prefork_clear(): instead of sleeping for a second after sending the SIGKILL
to the child processes, go through a waitpid() loop.  (In practice this
function is all but unreachable anyway.)

M    src/libopensrf/osrf_prefork.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1886 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_prefork.c