[LON-CAPA-cvs] cvs: loncom / lond

foxr foxr@source.lon-capa.org
Tue, 02 Nov 2010 10:20:36 -0000


foxr		Tue Nov  2 10:20:36 2010 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Close data socket in parent after forking child to service it.
  
  
Index: loncom/lond
diff -u loncom/lond:1.461 loncom/lond:1.462
--- loncom/lond:1.461	Tue Oct 26 09:46:23 2010
+++ loncom/lond	Tue Nov  2 10:20:35 2010
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.461 2010/10/26 09:46:23 foxr Exp $
+# $Id: lond,v 1.462 2010/11/02 10:20:35 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,7 +58,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.461 $'; #' stupid emacs
+my $VERSION='$Revision: 1.462 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -6384,6 +6384,7 @@
             or die "Can't unblock SIGINT for fork: $!\n";
         $children{$pid} = $clientip;
         &status('Started child '.$pid);
+	close($client);
         return;
     } else {
         # Child can *not* return from this subroutine.