[open-ils-commits] [GIT] Evergreen ILS branch rel_2_6 updated. 31f6a165d48baf7b8a191f115959aceada2e26cc

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, rel_2_6 has been updated
       via  31f6a165d48baf7b8a191f115959aceada2e26cc (commit)
      from  12ba07b293d73a9d0bfb130bc1220a0038f29627 (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 31f6a165d48baf7b8a191f115959aceada2e26cc
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 29b067d..6f71e67 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