src/Pure/System/isabelle_system.scala
changeset 73601 19c558ea903c
parent 73597 07a8ea094eb3
child 73608 6081885b9d06
--- a/src/Pure/System/isabelle_system.scala	Thu Apr 22 22:55:41 2021 +0200
+++ b/src/Pure/System/isabelle_system.scala	Thu Apr 22 23:03:58 2021 +0200
@@ -496,12 +496,13 @@
     (output, rc)
   }
 
-  def kill(signal: String, group_pid: String): (String, Int) =
+  def process_signal(group_pid: String, signal: String = "0"): Boolean =
   {
     val bash =
       if (Platform.is_windows) List(cygwin_root() + "\\bin\\bash.exe")
       else List("/usr/bin/env", "bash")
-    process_output(process(bash ::: List("-c", "kill -" + signal + " -" + group_pid)))
+    val (_, rc) = process_output(process(bash ::: List("-c", "kill -" + signal + " -" + group_pid)))
+    rc == 0
   }