From fb94c5f1e5bb9ccd28bcd311f388db7bea35c865 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 14 Mar 2010 06:49:55 +0000 Subject: * Replaces the internals of the subprocess module from fork through exec on POSIX systems with a C extension module. This is required in order for the subprocess module to be made thread safe. The pure python implementation is retained so that it can continue to be used if for some reason the _posixsubprocess extension module is not available. The unittest executes tests on both code paths to guarantee compatibility. * Moves PyLong_FromPid and PyLong_AsPid from posixmodule.c into longobject.h. Code reviewed by jeffrey.yasskin at http://codereview.appspot.com/223077/show --- Include/pythonrun.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/pythonrun.h') diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 09d3ee5530..b49ad96b81 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -81,6 +81,9 @@ PyAPI_FUNC(int) Py_AtExit(void (*func)(void)); PyAPI_FUNC(void) Py_Exit(int); +/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. */ +PyAPI_FUNC(void) _Py_RestoreSignals(void); + PyAPI_FUNC(int) Py_FdIsInteractive(FILE *, const char *); /* Bootstrap */ -- cgit v1.2.1