@@ -95,7 +95,7 @@ The variables defined in the :mod:`signal` module are:
95
95
96
96
All the signal numbers are defined symbolically. For example, the hangup signal
97
97
is defined as :const: `signal.SIGHUP `; the variable names are identical to the
98
- names used in C programs, as found in ``<signal.h> ``. The Unix man page for
98
+ names used in C programs, as found in ``<signal.h> ``. The Unix man page for
99
99
':c:func: `signal `' lists the existing signals (on some systems this is
100
100
:manpage: `signal(2)`, on others the list is in :manpage: `signal(7)`). Note that
101
101
not all systems define the same set of signal names; only those names defined by
@@ -193,10 +193,10 @@ The :mod:`signal` module defines the following functions:
193
193
canceled (only one alarm can be scheduled at any time). The returned value is
194
194
then the number of seconds before any previously set alarm was to have been
195
195
delivered. If *time * is zero, no alarm is scheduled, and any scheduled alarm is
196
- canceled. If the return value is zero, no alarm is currently scheduled. (See
197
- the Unix man page :manpage: `alarm(2)`.)
196
+ canceled. If the return value is zero, no alarm is currently scheduled.
198
197
199
- .. availability :: Unix.
198
+ .. availability :: Unix. See the man page :manpage:`alarm(2)` for further
199
+ information.
200
200
201
201
202
202
.. function :: getsignal(signalnum)
@@ -213,8 +213,10 @@ The :mod:`signal` module defines the following functions:
213
213
.. function :: pause()
214
214
215
215
Cause the process to sleep until a signal is received; the appropriate handler
216
- will then be called. Returns nothing. Not on Windows. (See the Unix man page
217
- :manpage: `signal(2)`.)
216
+ will then be called. Returns nothing.
217
+
218
+ .. availability :: Unix. See the man page :manpage:`signal(2)` for further
219
+ information.
218
220
219
221
See also :func: `sigwait `, :func: `sigwaitinfo `, :func: `sigtimedwait ` and
220
222
:func: `sigpending `.
@@ -237,8 +239,8 @@ The :mod:`signal` module defines the following functions:
237
239
If *signalnum * is 0, then no signal is sent, but error checking is still
238
240
performed; this can be used to check if the target thread is still running.
239
241
240
- .. availability :: Unix (see the man page :manpage:`pthread_kill(3)` for further
241
- information) .
242
+ .. availability :: Unix. See the man page :manpage:`pthread_kill(3)` for further
243
+ information.
242
244
243
245
See also :func: `os.kill `.
244
246
@@ -268,7 +270,7 @@ The :mod:`signal` module defines the following functions:
268
270
For example, ``signal.pthread_sigmask(signal.SIG_BLOCK, []) `` reads the
269
271
signal mask of the calling thread.
270
272
271
- .. availability :: Unix. See the man page :manpage:`sigprocmask(3)` and
273
+ .. availability :: Unix. See the man page :manpage:`sigprocmask(3)` and
272
274
:manpage: `pthread_sigmask(3)` for further information.
273
275
274
276
See also :func: `pause `, :func: `sigpending ` and :func: `sigwait `.
@@ -355,8 +357,8 @@ The :mod:`signal` module defines the following functions:
355
357
calls will be restarted when interrupted by signal *signalnum *, otherwise
356
358
system calls will be interrupted. Returns nothing.
357
359
358
- .. availability :: Unix (see the man page :manpage:`siginterrupt(3)`
359
- for further information) .
360
+ .. availability :: Unix. See the man page :manpage:`siginterrupt(3)`
361
+ for further information.
360
362
361
363
Note that installing a signal handler with :func: `signal ` will reset the
362
364
restart behaviour to interruptible by implicitly calling
@@ -369,7 +371,7 @@ The :mod:`signal` module defines the following functions:
369
371
be a callable Python object taking two arguments (see below), or one of the
370
372
special values :const: `signal.SIG_IGN ` or :const: `signal.SIG_DFL `. The previous
371
373
signal handler will be returned (see the description of :func: `getsignal `
372
- above). (See the Unix man page :manpage: `signal(2)`.)
374
+ above). (See the Unix man page :manpage: `signal(2)` for further information .)
373
375
374
376
When threads are enabled, this function can only be called from the main thread;
375
377
attempting to call it from other threads will cause a :exc: `ValueError `
@@ -395,8 +397,8 @@ The :mod:`signal` module defines the following functions:
395
397
thread (i.e., the signals which have been raised while blocked). Return the
396
398
set of the pending signals.
397
399
398
- .. availability :: Unix (see the man page :manpage:`sigpending(2)` for further
399
- information) .
400
+ .. availability :: Unix. See the man page :manpage:`sigpending(2)` for further
401
+ information.
400
402
401
403
See also :func: `pause `, :func: `pthread_sigmask ` and :func: `sigwait `.
402
404
@@ -409,8 +411,8 @@ The :mod:`signal` module defines the following functions:
409
411
signals specified in the signal set *sigset *. The function accepts the signal
410
412
(removes it from the pending list of signals), and returns the signal number.
411
413
412
- .. availability :: Unix (see the man page :manpage:`sigwait(3)` for further
413
- information) .
414
+ .. availability :: Unix. See the man page :manpage:`sigwait(3)` for further
415
+ information.
414
416
415
417
See also :func: `pause `, :func: `pthread_sigmask `, :func: `sigpending `,
416
418
:func: `sigwaitinfo ` and :func: `sigtimedwait `.
@@ -434,8 +436,8 @@ The :mod:`signal` module defines the following functions:
434
436
:attr: `si_errno `, :attr: `si_pid `, :attr: `si_uid `, :attr: `si_status `,
435
437
:attr: `si_band `.
436
438
437
- .. availability :: Unix (see the man page :manpage:`sigwaitinfo(2)` for further
438
- information) .
439
+ .. availability :: Unix. See the man page :manpage:`sigwaitinfo(2)` for further
440
+ information.
439
441
440
442
See also :func: `pause `, :func: `sigwait ` and :func: `sigtimedwait `.
441
443
@@ -453,8 +455,8 @@ The :mod:`signal` module defines the following functions:
453
455
specifying a timeout. If *timeout * is specified as :const: `0 `, a poll is
454
456
performed. Returns :const: `None ` if a timeout occurs.
455
457
456
- .. availability :: Unix (see the man page :manpage:`sigtimedwait(2)` for further
457
- information) .
458
+ .. availability :: Unix. See the man page :manpage:`sigtimedwait(2)` for further
459
+ information.
458
460
459
461
See also :func: `pause `, :func: `sigwait ` and :func: `sigwaitinfo `.
460
462
0 commit comments