Eryk Sun added the comment:
Popen.send_signal() documents that sending CTRL_C_EVENT (cancel) to a process
group is possible, which is clearly a true statement and easily demonstrated.
OTOH, the Windows documentation of GenerateConsoleCtrlEvent() claims it's not
possible. If you know what
Eryk Sun added the comment:
You can send CTRL_C_EVENT to a process group. But it requires the group leader
to manually enable Ctrl+C handling. Initially it's disabled when creating a
process with CREATE_NEW_PROCESS_GROUP.
The attached script demonstrates sending CTRL_C_EVENT to a process
Nitika Agarwal added the comment:
Hi, I would like to propose a patch for this.
--
nosy: +nitika
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13368
___
Eli Bendersky added the comment:
Brian - gentle ping
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13368
___
___
Python-bugs-list mailing list
Eli Bendersky eli...@gmail.com added the comment:
Brian, I see this text (along with the implementation) was added by you in
60197:0ab89e8bdedc
Could you state your opinion on this issue?
--
nosy: +brian.curtin
___
Python tracker
Brian Curtin br...@python.org added the comment:
But it is useless for terminating a process with os.kill() in combination
with signal.SIGTERM, which corresponds to a CTRL-C-EVENT.
SIGTERM does not correspond to CTRL_C_EVENT. They may be similar in what they
do, but os.kill on Windows only
New submission from Eli Bendersky eli...@gmail.com:
docs@ list report by Daniel Dieterle:
in the documentation
(http://docs.python.org/library/subprocess.html#subprocess.Popen.send_signal)
is a bug.
CTRL_C_EVENT can not be sent to processes started with a creationflags
parameter which