]> git.evergreen-ils.org Git - OpenSRF.git/commit
Now, when no children are available to pass a request to, the parent
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Sep 2006 02:03:52 +0000 (02:03 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Sep 2006 02:03:52 +0000 (02:03 +0000)
commit5bece460160d4cab65d0fbdc7d178994d1d453aa
treeb94bd4d402e1c76f43d62e8a98fd8079c41dd163
parent433f9a99c18793798ef8edc974f9e1a10d5ceb43
Now, when no children are available to pass a request to, the parent
process blocks on a select() call until any child is available.

previously, the parent would sleep 50ms, do a select() poll, sleep again, etc.

The new approach has the potential to be up to almost 50ms faster at finding
an available child when the parent is forced to wait.  plus, polling is just dumb

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