[issue1220212] os.kill on windows

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Ported to py3k in r80008. FAQ text updated in r80009 and r80010. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1220212] os.kill on windows

2010-04-05 Thread anatoly techtonik
anatoly techtonik added the comment: Seems good to me, even though I'd rewrite some parts like this: - Prior to Python 2.7 and 3.2, to terminate a process, you can use ctypes:: + Prior to Python 2.7 and 3.2, you can use linksomehow:`ctypes` to terminate a process:: ... In newer Python version

[issue1220212] os.kill on windows

2010-04-05 Thread Brian Curtin
Brian Curtin added the comment: How about something like this patch? -- Added file: http://bugs.python.org/file16765/faq_update.diff ___ Python tracker ___ ___

[issue1220212] os.kill on windows

2010-04-05 Thread anatoly techtonik
anatoly techtonik added the comment: FAQ should be updated http://www.python.org/doc/faq/windows/#how-do-i-emulate-os-kill-in-windows -- nosy: +techtonik ___ Python tracker _

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin added the comment: Committed to trunk in r79633 after talking with Michael about it. I'll forward port it after the 2.7 beta goes out. -- assignee: -> brian.curtin stage: -> committed/rejected type: -> feature request ___ Python trac

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord added the comment: According to earlier discussion in this issue os.spawn() return process handles on Windows. -- ___ Python tracker ___ ___

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin added the comment: Michael, do you have an example of something which returns a handle? This current patch doesn't work with handles, but it wouldn't be hard to add it. I could make it work with the _handle object of a Popen object, but you could just as easily call os.kill on th

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16704/issue1220212.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord added the comment: After discussion with Brian it seems like it should be possible for os.kill(...) on Windows to support both pids *and* process handles. This seems ideal. -- ___ Python tracker

[issue1220212] os.kill on windows

2010-03-30 Thread Brian Curtin
Brian Curtin added the comment: Removed an unnecessary goto and fixed a few tab/space inconsistencies (ugh). -- Added file: http://bugs.python.org/file16704/issue1220212.patch ___ Python tracker

[issue1220212] os.kill on windows

2010-03-30 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16703/issue1220212.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue1220212] os.kill on windows

2010-03-30 Thread Brian Curtin
Brian Curtin added the comment: Here is a patch with some tests and doc changes. I'm having trouble coming up with tests which will work with CTRL_C_EVENT and CTRL_BREAK_EVENT. Based on my understanding of GenerateConsoleCtrlEvent, I figured this example (http://msdn.microsoft.com/en-us/libr

[issue1220212] os.kill on windows

2010-03-27 Thread Brian Curtin
Brian Curtin added the comment: I have this working with process IDs and my vote would be to keep it that way, as it would stay in-line with the other platforms, and it seems to work so far. I would imagine that was also IronPython's goal. I'm still working on the test portion of the patch. I

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: Hmm... well my particular use case is that it should work with the value returned by os.getpid(). If that is a process handle then it is nice and convenient to just use process handles. The docs don't specify so I bet it returns a pid. :-( However Brian Curti

[issue1220212] os.kill on windows

2010-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: So, Michael, what do you think: should os.kill expect a process handle, or a process ID? -- ___ Python tracker ___

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Changes by Michael Foord : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: To make it clear, even though it would be incomplete, a partial implementation of os.kill(...) for Windows would be very useful and provide some level of compatibility with applications that use os.kill (so even if os.kill(...) duplicates functionality in othe

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: To make it clear, even though it would be incomplete, a partial implementation of os.kill(...) for Windows would be very useful and provide some level of compatibility with applications that use os.kill (so even if os.kill(...) duplicates functionality in othe

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord added the comment: Aaaand the IronPython implementation of NativeSignal.GenerateConsoleCtrlEvent(PythonSignal.CTRL_C_EVENT, ...) delegates to Kernel32.GenerateConsoleCtrlEvent. -- ___ Python tracker

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord added the comment: I'm wrong. First IronPython tries: NativeSignal.GenerateConsoleCtrlEvent(PythonSignal.CTRL_C_EVENT, ...) But with the comment: //The following calls to GenerateConsoleCtrlEvent will fail under //most circumstances. We'll try them any ways though as this seems

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Changes by Michael Foord : -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord added the comment: It would be really useful to be able to send signal.SIGINT to processes on Windows using os.kill(...). The patch as described sounds like it would have a different signature to the standard implementation of os.kill(...) which takes a pid and a signal type.

[issue1220212] os.kill on windows

2008-08-25 Thread Anders J. Munch
Changes by Anders J. Munch <[EMAIL PROTECTED]>: -- nosy: +andersjm ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue1220212] os.kill on windows

2008-04-08 Thread Trent Nelson
Changes by Trent Nelson <[EMAIL PROTECTED]>: -- nosy: +Trent.Nelson _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list

[issue1220212] os.kill on windows

2008-02-16 Thread Technologov
Technologov added the comment: Yes, this feature would be very important for me too... Anybody knows, _when_ it will be integrated into Python ? If this bugzilla supports email notifications, Please add me as "CC" for this bug. -Technologov -- nosy: +Technologov _

[issue1220212] os.kill on windows

2008-01-11 Thread Miki Tebeka
Miki Tebeka added the comment: > Users should substitute their popen and exec calls with subprocess As long as popen and exec are available, users are free to use them (and probably will :) The Popen(...).terminate() works only if I'm the one who started the process. However there are cases wher

[issue1220212] os.kill on windows

2008-01-11 Thread Christian Heimes
Christian Heimes added the comment: This should be implemented differently. Users should substitute their popen and exec calls with subprocess. The subprocess.Popen class should gain two new methods terminate() and send_signal(int) where send_signal is restricted to SIGKILL (+SIGTERM ?) on Window