[LON-CAPA-cvs] cvs: loncom / loncnew
foxr
foxr@source.lon-capa.org
Mon, 20 Dec 2010 11:31:52 -0000
foxr Mon Dec 20 11:31:52 2010 EDT
Modified files:
/loncom loncnew
Log:
Ensure that time on flock keeping messages (forking server) in logs are
updated...note that this will make the ps axuww message include the time
of the last fork if I'm reading the code correctly..rather than the
start time.
Index: loncom/loncnew
diff -u loncom/loncnew:1.90 loncom/loncnew:1.91
--- loncom/loncnew:1.90 Mon Dec 20 11:15:51 2010
+++ loncom/loncnew Mon Dec 20 11:31:52 2010
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# lonc maintains the connections to remote computers
#
-# $Id: loncnew,v 1.90 2010/12/20 11:15:51 foxr Exp $
+# $Id: loncnew,v 1.91 2010/12/20 11:31:52 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1775,6 +1775,7 @@
my $sigset = POSIX::SigSet->new(SIGINT);
sigprocmask(SIG_BLOCK, $sigset);
$RemoteHost = $host;
+ ShowStatus('Parent keeping the flock'); # Update time in status message.
Log("CRITICAL", "Forking server for ".$host);
my $pid = fork;
if($pid) { # Parent