Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2fb1db2
Commit
d2fb1db2
authored
Nov 28, 2005
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1350409: Port signal handling to VS 2005.
parent
36b98a46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
Python/pythonrun.c
Python/pythonrun.c
+17
-0
No files found.
Misc/ACKS
View file @
d2fb1db2
...
...
@@ -113,6 +113,7 @@ David Chaum
Nicolas Chauvat
Michael Chermside
Albert Chin-A-Young
Adal Chiriliuc
Tom Christiansen
Vadim Chugunov
David Cinege
...
...
Misc/NEWS
View file @
d2fb1db2
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.5 alpha 1?
Core and builtins
-----------------
- Patch #1350409: Work around signal handling bug in Visual Studio 2005.
- Bug #1281408: Py_BuildValue now works correct even with unsigned longs
and long longs.
...
...
Python/pythonrun.c
View file @
d2fb1db2
...
...
@@ -1615,6 +1615,23 @@ PyOS_getsig(int sig)
return
context
.
sa_handler
;
#else
PyOS_sighandler_t
handler
;
/* Special signal handling for the secure CRT in Visual Studio 2005 */
#if defined(_MSC_VER) && _MSC_VER >= 1400
switch
(
sig
)
{
/* Only these signals are valid */
case
SIGINT
:
case
SIGILL
:
case
SIGFPE
:
case
SIGSEGV
:
case
SIGTERM
:
case
SIGBREAK
:
case
SIGABRT
:
break
;
/* Don't call signal() with other values or it will assert */
default:
return
SIG_ERR
;
}
#endif
/* _MSC_VER && _MSC_VER >= 1400 */
handler
=
signal
(
sig
,
SIG_IGN
);
if
(
handler
!=
SIG_ERR
)
signal
(
sig
,
handler
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment