[open-ils-commits] [GIT] Evergreen ILS branch master updated. 04a38b3fb6173a7ee5819f346f7764814697c72b

Evergreen Git git at git.evergreen-ils.org
Tue Mar 24 13:36:45 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  04a38b3fb6173a7ee5819f346f7764814697c72b (commit)
      from  2acd1c2b02d8db80e394fa1a204018a3422caa0c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 04a38b3fb6173a7ee5819f346f7764814697c72b
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Tue Mar 24 12:49:39 2015 -0400

    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 at mvlc.org>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/reporter/clark-kent.pl b/Open-ILS/src/reporter/clark-kent.pl
index 2e9bbd9..8893fc5 100755
--- a/Open-ILS/src/reporter/clark-kent.pl
+++ b/Open-ILS/src/reporter/clark-kent.pl
@@ -91,10 +91,10 @@ my $data_dsn  = "dbi:" .  $data_db{db_driver} . ":dbname=" .  $data_db{db_name}
 my ($dbh,$running,$sth, at reports,$run, $current_time);
 
 if ($daemon) {
+	daemonize("Clark Kent, waiting for trouble");
 	open(F, ">$lockfile") or die "Cannot write lockfile '$lockfile'";
 	print F $$;
 	close F;
-	daemonize("Clark Kent, waiting for trouble");
 }
 
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/reporter/clark-kent.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list