]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF-13129&13127&13128] omniNames process not killed.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 17 Jun 2016 08:41:23 +0000 (10:41 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 17 Jun 2016 08:41:23 +0000 (10:41 +0200)
When running "salome test" on "salomeintegration2" machine,
sometimes, several YACS tests hang on, because the process
"omniNames" is not killed. This commit fixes the issue.
Further work should be done in order to deal with concurrency
when writing to the file "*pidict" which contains the pids of the
servers created when launching salome.

bin/killSalomeWithPort.py

index d95a6fe2bad864f64769ef733eba11034e8c358a..9670329bf363a9f7e90148632e8d6864a837cc4c 100755 (executable)
@@ -311,7 +311,7 @@ def killMyPort(port):
 
     # try to shutdown session normally
     import threading, time
-    threading.Thread(target=shutdownMyPort, args=(port,False)).start()
+    threading.Thread(target=shutdownMyPort, args=(port,True)).start()
     time.sleep(3) # wait a little, then kill processes (should be done if shutdown procedure hangs up)
 
     try: