From cb3c6d7da9b846843a4a81898ebfdcf2e449942a Mon Sep 17 00:00:00 2001 From: Mauri de Souza Meneguzzo Date: Tue, 18 Jul 2023 18:17:57 -0300 Subject: [PATCH] chore: add doc comment about timeout value in Pselect --- unix/syscall_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/syscall_linux.go b/unix/syscall_linux.go index 55e6978e..a730878e 100644 --- a/unix/syscall_linux.go +++ b/unix/syscall_linux.go @@ -2438,6 +2438,8 @@ func Getresgid() (rgid, egid, sgid int) { return int(r), int(e), int(s) } +// Pselect is a wrapper around the Linux pselect6 system call. +// This version does not modify the timeout argument. func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { // Per https://man7.org/linux/man-pages/man2/select.2.html#NOTES, // The Linux pselect6() system call modifies its timeout argument.