Message9151

Author pekka.klarck
Recipients pekka.klarck, zyasoft
Date 2014-10-14.21:49:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413323384.65.0.815072812101.issue2219@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, pid and os.kill ought to be enough to get this fully implemented. Could mostly use the default subprocess logic both on POSIX and on Windows after that. The only exception I can think of is that SIGTERM should be mapped to Popen.terminate (and through it to Java's Process.destroy) also on POSIX. That would give us SIGTERM support even if pid wouldn't be available.

I though Jython didn't have os.kill at all, but apparently it has it except on Windows. Is there a reason it's not there on Windows like it is on Python 2.7? Should a separate issue be submitted about it? It ought to be possible to send CTRL_C_EVENT and CTRL_BREAK_EVENT using ctypes. Signals are obviously much more useful on POSIX, and thus I consider Windows support lowest priority here.
History
Date User Action Args
2014-10-14 21:49:44pekka.klarcksetmessageid: <1413323384.65.0.815072812101.issue2219@psf.upfronthosting.co.za>
2014-10-14 21:49:44pekka.klarcksetrecipients: + pekka.klarck, zyasoft
2014-10-14 21:49:44pekka.klarcklinkissue2219 messages
2014-10-14 21:49:44pekka.klarckcreate