LP 1435966: Clark Kent should write lock file after it forks. user/dyrcona/lp1435966_reporter_pid_fix
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 24 Mar 2015 16:49:39 +0000 (12:49 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 24 Mar 2015 16:49:39 +0000 (12:49 -0400)
commitcb9d36628e4ee9f32b77c1f768baed51cdba00ff
treec4b7bfa54d65b0e5d82f2ed7173db7299c74f28f
parent2acd1c2b02d8db80e394fa1a204018a3422caa0c
LP 1435966: Clark Kent should write lock file after it forks.

Rearrange the code in clark-kent.pl so that the lock/pid file is
opened and written to after the reporter daemonizes itself.  This
way, the pid in the file can actually be used to stop the running
reporter daemon.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/reporter/clark-kent.pl