[Mono-bugs] [Bug 62395][Nor] Changed - Kill() won't kill
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 13 May 2005 00:57:59 -0400 (EDT)
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 michi@zeroc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=62395
--- shadow/62395 2005-04-28 19:56:15.000000000 -0400
+++ shadow/62395.tmp.11673 2005-05-13 00:57:59.000000000 -0400
@@ -80,6 +80,18 @@
call directly. Is this possible? Which library do I need for the
DllImport directive?
One other question: in general, when I want to use platform invoke,
it's not always obvious in which library I can find the entry point.
Is there any way to find out?
+
+------- Additional Comments From michi@zeroc.com 2005-05-13 00:57 -------
+This hack is terrible because kill isn't always in /usr/bin. (On Mac
+OS X for example, it's in /bin.)
+
+Looking at the source, Kill() calls Process.Close(1) internally.
+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.