diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-01 17:58:40 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-01 17:58:40 (GMT) |
commit | 1ce3cf774968ea4b8cf21058eea5d4baee0b5349 (patch) | |
tree | 2b79199e442d2c559679d6eb12bb6f6ab4ab816e /Misc/NEWS | |
parent | fbacaf7298fe9118d1c41b11de7449729ecc0bcd (diff) | |
download | cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.zip cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.tar.gz cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.tar.bz2 |
SF patch [#466877] SIGBREAK is missing from signal module.
Patch from Steve Scott to add SIGBREAK support (unique to Windows).
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -31,6 +31,26 @@ Tests Windows +- The signal module now supports SIGBREAK on Windows, thanks to Steven + Scott. Note that SIGBREAK is unique to Windows. The default SIGBREAK + action remains to call Win32 ExitProcess(). This can be changed via + signal.signal(). For example: + + # Make Ctrl+Break raise KeyboardInterrupt, like Python's default Ctrl+C + # (SIGINT) behavior. + import signal + signal.signal(signal.SIGBREAK, + signal.default_int_handler) + + try: + while 1: + pass + except KeyboardInterrupt: + # We get here on Ctrl+C or Ctrl+Break now; if we had not changed + # SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the + # program without the possibility for any Python-level cleanup). + print "Clean exit" + What's New in Python 2.2a4? Release date: 28-Sep-2001 |