summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-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 */
};