[Mono-bugs] [Bug 62395][Nor] Changed - Kill() won't kill

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat May 14 08:45:26 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jonpryor at vt.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=62395

--- shadow/62395	2005-05-13 00:57:59.000000000 -0400
+++ shadow/62395.tmp.22589	2005-05-14 08:45:26.000000000 -0400
@@ -92,6 +92,19 @@
 Why not change it to call Process.Close(9) instead? That would make 
 sure that the process is *killed*, period.
 
 BTW -- System.Environment.Exit doesn't do the job either because it 
 calls finalizers and basically does an orderly shutdown (well, 
 mostly). We really need a instant and abortive kill of some kind.
+
+------- Additional Comments From jonpryor at vt.edu  2005-05-14 08:45 -------
+Why not use Mono.Unix.Stdlib.raise (Mono.Unix.Signum.SIGKILL) from
+Mono.Posix.dll?
+
+Or:
+  Mono.Unix.Syscall.kill (
+    Mono.Unix.Syscall.getpid (),
+    Mono.Unix.Signum.SIGKILL);
+
+That DllImports to kill(2), so it should kill your process outright...
+
+Though I'd think System.Environment.Exit () would also work...


More information about the mono-bugs mailing list