equal
deleted
inserted
replaced
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 |