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
2bff9fce
Commit
2bff9fce
authored
May 15, 2011
by
Georg Brandl
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge.
parents
758b85e9
5ebfe6d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
Doc/c-api/veryhigh.rst
Doc/c-api/veryhigh.rst
+6
-5
Misc/NEWS
Misc/NEWS
+3
-0
Modules/signalmodule.c
Modules/signalmodule.c
+3
-3
Python/pythonrun.c
Python/pythonrun.c
+1
-1
No files found.
Doc/c-api/veryhigh.rst
View file @
2bff9fce
...
...
@@ -34,11 +34,12 @@ the same library that the Python runtime is using.
according to the user's locale). It is important to note that the
argument list may be modified (but the contents of the strings
pointed to by the argument list are not). The return value will be
the integer passed to the :func:`sys.exit` function, ``1`` if the
interpreter exits due to an exception, or ``2`` if the parameter
list does not represent a valid Python command line.
```0``` if the interpreter exits normally (ie, without an
exception), ``1`` if the interpreter exits due to an exception, or
``2`` if the parameter list does not represent a valid Python
command line.
Note that if an otherwise unhandled :exc:`SystemE
rror
` is raised, this
Note that if an otherwise unhandled :exc:`SystemE
xit
` is raised, this
function will not return ``1``, but exit the process, as long as
``Py_InspectFlag`` is not set.
...
...
@@ -85,7 +86,7 @@ the same library that the Python runtime is using.
there was an error, there is no way to get the exception information. For the
meaning of *flags*, see below.
Note that if an otherwise unhandled :exc:`SystemE
rror
` is raised, this
Note that if an otherwise unhandled :exc:`SystemE
xit
` is raised, this
function will not return ``-1``, but exit the process, as long as
``Py_InspectFlag`` is not set.
...
...
Misc/NEWS
View file @
2bff9fce
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.2.1 release candidate 1?
Core and Builtins
-----------------
- Issue #12060: Use sig_atomic_t type and volatile keyword in the signal
module. Patch written by Charles-François Natali.
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
wait for the process to end when exiting the context to avoid unintentionally
leaving zombie processes around.
...
...
Modules/signalmodule.c
View file @
2bff9fce
...
...
@@ -80,12 +80,12 @@ static long main_thread;
static
pid_t
main_pid
;
#endif
static
struct
{
in
t
tripped
;
static
volatile
struct
{
sig_atomic_
t
tripped
;
PyObject
*
func
;
}
Handlers
[
NSIG
];
static
sig_atomic_t
wakeup_fd
=
-
1
;
static
volatile
sig_atomic_t
wakeup_fd
=
-
1
;
/* Speed up sigcheck() when none tripped */
static
volatile
sig_atomic_t
is_tripped
=
0
;
...
...
Python/pythonrun.c
View file @
2bff9fce
...
...
@@ -80,7 +80,7 @@ int Py_DebugFlag; /* Needed by parser.c */
int
Py_VerboseFlag
;
/* Needed by import.c */
int
Py_QuietFlag
;
/* Needed by sysmodule.c */
int
Py_InteractiveFlag
;
/* Needed by Py_FdIsInteractive() below */
int
Py_InspectFlag
;
/* Needed to determine whether to exit at SystemE
rror
*/
int
Py_InspectFlag
;
/* Needed to determine whether to exit at SystemE
xit
*/
int
Py_NoSiteFlag
;
/* Suppress 'import site' */
int
Py_BytesWarningFlag
;
/* Warn on str(bytes) and str(buffer) */
int
Py_DontWriteBytecodeFlag
;
/* Suppress writing bytecode files (*.py[co]) */
...
...
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