pselect(2): Document what a null pointer for the signalmask means
When pselect is passed a null pointer for the signal mask, the standard says it shall behave like select (except for the different timeout arg). Make a note of that here. Sponsored by: Netflix
This commit is contained in:
parent
cf72911158
commit
ef86876b84
@ -28,7 +28,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 16, 2013
|
.Dd July 2, 2022
|
||||||
.Dt PSELECT 2
|
.Dt PSELECT 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -66,7 +66,7 @@ argument in
|
|||||||
.Fn pselect
|
.Fn pselect
|
||||||
points to a
|
points to a
|
||||||
.Vt "const struct timespec"
|
.Vt "const struct timespec"
|
||||||
rather than the (modifiable)
|
rather than the potentially modifiable
|
||||||
.Vt "struct timeval"
|
.Vt "struct timeval"
|
||||||
used by
|
used by
|
||||||
.Fn select ;
|
.Fn select ;
|
||||||
@ -81,6 +81,13 @@ specifies a signal mask which is set while waiting for input.
|
|||||||
When
|
When
|
||||||
.Fn pselect
|
.Fn pselect
|
||||||
returns, the original signal mask is restored.
|
returns, the original signal mask is restored.
|
||||||
|
If
|
||||||
|
.Fa newsigmask
|
||||||
|
is a null pointer,
|
||||||
|
.Fn pselect
|
||||||
|
behaves like
|
||||||
|
.Fn select
|
||||||
|
with no setting or restoration of the signal mask.
|
||||||
.Pp
|
.Pp
|
||||||
See
|
See
|
||||||
.Xr select 2
|
.Xr select 2
|
||||||
|
Loading…
Reference in New Issue
Block a user