[LON-CAPA-cvs] cvs: loncom / LondConnection.pm

foxr lon-capa-cvs@mail.lon-capa.org
Tue, 02 Dec 2003 10:38:40 -0000


foxr		Tue Dec  2 05:38:40 2003 EDT

  Modified files:              
    /loncom	LondConnection.pm 
  Log:
  Attempt to send "exit" to the lond partner on Shutdown in order to 
  try to force lond to exit promptly as well.
  
  
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.17 loncom/LondConnection.pm:1.18
--- loncom/LondConnection.pm:1.17	Tue Nov  4 06:22:48 2003
+++ loncom/LondConnection.pm	Tue Dec  2 05:38:40 2003
@@ -1,7 +1,7 @@
 #   This module defines and implements a class that represents
 #   a connection to a lond daemon.
 #
-# $Id: LondConnection.pm,v 1.17 2003/11/04 11:22:48 foxr Exp $
+# $Id: LondConnection.pm,v 1.18 2003/12/02 10:38:40 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -562,6 +562,8 @@
 sub Shutdown {
     my $self = shift;
     my $socket = $self->GetSocket();
+    $socket->send("exit\n", 0);	# Ask lond to exit too.  Non blocking so
+                                # there's no cost for failure.
     $socket->shutdown(2);
 }