Write the PID file from the child process (the one that launches the
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 7 May 2010 16:40:35 +0000 (16:40 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 7 May 2010 16:40:35 +0000 (16:40 +0000)
commit25efbf44f0941f3b9a0b39ffd847d5d601020d6b
treefd93e63219737df0c2447c5693781bbbd534b2e9
parentf2b812138a4328972f5ae0dec6bd6e4f0938f2e3
Write the PID file from the child process (the one that launches the
listeners), not from the parent process; and only if it actually launches
a listener.

Otherwise if there are no C apps to launch, the child would die immediately,
leaving the PID file hanging around to confuse the surrounding shell script.

M    src/libopensrf/osrf_system.c

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