]> git.entuzijast.net Git - imunes.git/commitdiff
Remote execution - improved error handling
authormiljenko <miljenko>
Tue, 20 Dec 2005 16:16:58 +0000 (16:16 +0000)
committermiljenko <miljenko>
Tue, 20 Dec 2005 16:16:58 +0000 (16:16 +0000)
Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:

editor.tcl

index 11281d2117b99ff9347dc76fc15fa28d6b57c741..47e6a4bcb9841d5c7a0381b9dc95efbd69e4c7df 100755 (executable)
@@ -2263,6 +2263,7 @@ proc configRemoteHostsApply { wi } {
     global exec_hosts
     global active_host
     global remote_exec editor_only
+    global exec_sock monitor_sock exec_sockets_opened
 
     set n [llength $exec_hosts]
     set exec_hosts []
@@ -2279,6 +2280,10 @@ proc configRemoteHostsApply { wi } {
         set editor_only true
        .menubar.experiment entryconfigure "Execute" -state disabled
     }
+    catch { close exec_sock } message
+    catch { close monitor_sock } message
+    catch { unset exec_sock monitor_sock } message
+    set exec_sockets_opened false
     destroy $wi
 }