more robust command line -- accomodate /bin/kill on recent Linux (e.g. Xubuntu 13.04):
authorwenzelm
Wed, 22 May 2013 16:01:08 +0200
changeset 52112 3610ae73cfdb
parent 52111 1fd184eaa310
child 52113 2d2b049429f3
more robust command line -- accomodate /bin/kill on recent Linux (e.g. Xubuntu 13.04):
src/Pure/System/isabelle_system.scala
--- a/src/Pure/System/isabelle_system.scala	Wed May 22 14:10:45 2013 +0200
+++ b/src/Pure/System/isabelle_system.scala	Wed May 22 16:01:08 2013 +0200
@@ -305,8 +305,8 @@
     private def kill(signal: String): Boolean =
     {
       try {
-        execute(true, "kill", "-" + signal, "-" + pid).waitFor
-        execute(true, "kill", "-0", "-" + pid).waitFor == 0
+        execute(true, "kill", "-" + signal, "--", "-" + pid).waitFor
+        execute(true, "kill", "-0", "--", "-" + pid).waitFor == 0
       }
       catch { case _: InterruptedException => true }
     }