summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-23 13:49:37 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-23 13:49:37 (GMT)
commitaa0f4c73e5001218ca1fafd9053dda7d80dd8fff (patch)
tree044564c7753b9353d0e5dd254a1843ae4cdad63d /Modules/signalmodule.c
parent0b498beea2fd512ace928a2768c7382ac586a533 (diff)
downloadcpython-aa0f4c73e5001218ca1fafd9053dda7d80dd8fff.zip
cpython-aa0f4c73e5001218ca1fafd9053dda7d80dd8fff.tar.gz
cpython-aa0f4c73e5001218ca1fafd9053dda7d80dd8fff.tar.bz2
* Modules/signalmodule.c: added pause().
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 640505b..309af8e 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -105,7 +105,6 @@ signal_handler(sig_num)
(void *)signal(sig_num, &signal_handler);
}
-
static object *
signal_alarm(self, args)
object *self; /* Not used */
@@ -118,6 +117,18 @@ signal_alarm(self, args)
INCREF(None);
return None;
}
+
+static object *
+signal_pause(self, args)
+ object *self; /* Not used */
+ object *args;
+{
+ if (!getnoarg(args))
+ return NULL;
+ pause();
+ INCREF(None);
+ return None;
+}
static object *
signal_signal(self, args)
@@ -189,6 +200,7 @@ static struct methodlist signal_methods[] = {
{"alarm", signal_alarm},
{"signal", signal_signal},
{"getsignal", signal_getsignal},
+ {"pause", signal_pause},
{NULL, NULL} /* sentinel */
};