Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Catch more specific exceptions.
[simgrid.git] / tools / tesh / tesh.py
index 8b9ae29..69a0617 100755 (executable)
@@ -122,7 +122,7 @@ def kill_process_group(pid):
 
     try:
         pgid = os.getpgid(pid)
-    except:
+    except OSError:
         # os.getpgid failed. Ok, don't cleanup.
         return