This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients astrand, giampaolo.rodola
Date 2010-06-09.18:25:33
SpamBayes Score 0.41531187
Marked as misclassified No
Message-id <1276107936.75.0.980203852578.issue8956@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2010-06-09 18:25:37giampaolo.rodolasetrecipients: + giampaolo.rodola, astrand
2010-06-09 18:25:36giampaolo.rodolasetmessageid: <1276107936.75.0.980203852578.issue8956@psf.upfronthosting.co.za>
2010-06-09 18:25:33giampaolo.rodolalinkissue8956 messages
2010-06-09 18:25:33giampaolo.rodolacreate