Message107408
def send_signal(self, sig):
"""Send a signal to the process
"""
if sig == signal.SIGTERM:
self.terminate()
elif sig == signal.CTRL_C_EVENT:
os.kill(self.pid, signal.CTRL_C_EVENT)
elif sig == signal.CTRL_BREAK_EVENT:
os.kill(self.pid, signal.CTRL_BREAK_EVENT)
else:
raise ValueError("Only SIGTERM is supported on Windows")
Just noticed right now while I was reading subprocess source code.
I guess that should be "Only SIGTERM, CTRL_C_EVENT or CTRL_BREAK_EVENT are supported on Windows". |
|
Date |
User |
Action |
Args |
2010-06-09 18:25:37 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, astrand |
2010-06-09 18:25:36 | giampaolo.rodola | set | messageid: <1276107936.75.0.980203852578.issue8956@psf.upfronthosting.co.za> |
2010-06-09 18:25:33 | giampaolo.rodola | link | issue8956 messages |
2010-06-09 18:25:33 | giampaolo.rodola | create | |
|