LP 1435966: Clark Kent should write lock file after it forks.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 24 Mar 2015 16:49:39 +0000 (12:49 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 24 Mar 2015 17:45:33 +0000 (17:45 +0000)
commit31f6a165d48baf7b8a191f115959aceada2e26cc
treed865ef51dd8d84b9c836e55476ba49283824d4a6
parent12ba07b293d73a9d0bfb130bc1220a0038f29627
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>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/reporter/clark-kent.pl