From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA15578; Thu, 7 Aug 2003 02:41:25 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA07208 for ; Thu, 7 Aug 2003 02:41:24 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h770fMf12880 for ; Thu, 7 Aug 2003 02:41:22 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2/3.7W) with ESMTP id JAA11091; Thu, 7 Aug 2003 09:41:17 +0900 (JST) To: j.scott@runbox.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Unix.kill on Win32 In-Reply-To: <20030807092137N.garrigue@kurims.kyoto-u.ac.jp> References: <000201c35c17$2cefc4a0$0300a8c0@James> <20030807092137N.garrigue@kurims.kyoto-u.ac.jp> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030807094116O.garrigue@kurims.kyoto-u.ac.jp> Date: Thu, 07 Aug 2003 09:41:16 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; jacques:01 caml-list:01 32,:01 api:01 followup:01 garrigue:01 unix:02 functions:05 seems:05 kurims:06 problem:07 signals:08 kill:09 iirc:09 kyoto-u:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Jacques Garrigue > > Would it be possible/sensible to have some limited implementation of > > Unix.kill for Win32, so that 'kill pid 9' or 'kill pid 15' worked for > > example? > > I may be wrong, but when I looked at the problem about 5 years ago, I > couldn't find any way to act on a windows process from outside it. > The process manager must be using some internal API. Just a small followup to myself: after a quick search on the web, there seems to be two functions, TerminateProcess and GenerateConsoleControlEvent, but making them work like signals is far from easy. IIRC TerminateProcess on Windows95--ME may sometimes break the OS. Jacques Garrigue ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners