Skip to content

Commit cb3c6d7

Browse files
committed
chore: add doc comment about timeout value in Pselect
1 parent 364d4d2 commit cb3c6d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unix/syscall_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,8 @@ func Getresgid() (rgid, egid, sgid int) {
24382438
return int(r), int(e), int(s)
24392439
}
24402440

2441+
// Pselect is a wrapper around the Linux pselect6 system call.
2442+
// This version does not modify the timeout argument.
24412443
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
24422444
// Per https://man7.org/linux/man-pages/man2/select.2.html#NOTES,
24432445
// The Linux pselect6() system call modifies its timeout argument.

0 commit comments

Comments
 (0)