src/Pure/System/isabelle_system.scala
changeset 73601 19c558ea903c
parent 73597 07a8ea094eb3
child 73608 6081885b9d06
equal deleted inserted replaced
73600:328392479308 73601:19c558ea903c
   494         Exn.Interrupt.dispose()
   494         Exn.Interrupt.dispose()
   495       }
   495       }
   496     (output, rc)
   496     (output, rc)
   497   }
   497   }
   498 
   498 
   499   def kill(signal: String, group_pid: String): (String, Int) =
   499   def process_signal(group_pid: String, signal: String = "0"): Boolean =
   500   {
   500   {
   501     val bash =
   501     val bash =
   502       if (Platform.is_windows) List(cygwin_root() + "\\bin\\bash.exe")
   502       if (Platform.is_windows) List(cygwin_root() + "\\bin\\bash.exe")
   503       else List("/usr/bin/env", "bash")
   503       else List("/usr/bin/env", "bash")
   504     process_output(process(bash ::: List("-c", "kill -" + signal + " -" + group_pid)))
   504     val (_, rc) = process_output(process(bash ::: List("-c", "kill -" + signal + " -" + group_pid)))
       
   505     rc == 0
   505   }
   506   }
   506 
   507 
   507 
   508 
   508   /* GNU bash */
   509   /* GNU bash */
   509 
   510