Staging
v0.5.1
https://github.com/python/cpython
Revision ab85ff3d1a35011d09fc2e6a25a02d65f798bde4 authored by Antoine Pitrou on 23 July 2011, 20:03:45 UTC, committed by Antoine Pitrou on 23 July 2011, 20:03:45 UTC
module: the piped streams can now be properly read from or written to.

(this was broken due to the 2.x to 3.x transition; communicate() support
is still sketchy)
1 parent e96ec68
Raw File
Tip revision: ab85ff3d1a35011d09fc2e6a25a02d65f798bde4 authored by Antoine Pitrou on 23 July 2011, 20:03:45 UTC
Issue #12591: Improve support of "universal newlines" in the subprocess
Tip revision: ab85ff3
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top