Skip to content

Commit 29a4f6b

Browse files
committed
refactor(linux): replace Pselect with pselect6 for Select
1 parent 92541e6 commit 29a4f6b

5 files changed

+5
-5
lines changed

unix/syscall_linux_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
4040
if timeout != nil {
4141
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
4242
}
43-
return Pselect(nfd, r, w, e, ts, nil)
43+
return pselect6(nfd, r, w, e, ts, nil)
4444
}
4545

4646
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

unix/syscall_linux_arm64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
3333
if timeout != nil {
3434
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
3535
}
36-
return Pselect(nfd, r, w, e, ts, nil)
36+
return pselect6(nfd, r, w, e, ts, nil)
3737
}
3838

3939
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

unix/syscall_linux_loong64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
2828
if timeout != nil {
2929
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
3030
}
31-
return Pselect(nfd, r, w, e, ts, nil)
31+
return pselect6(nfd, r, w, e, ts, nil)
3232
}
3333

3434
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

unix/syscall_linux_mips64x.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
3131
if timeout != nil {
3232
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
3333
}
34-
return Pselect(nfd, r, w, e, ts, nil)
34+
return pselect6(nfd, r, w, e, ts, nil)
3535
}
3636

3737
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

unix/syscall_linux_riscv64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
3232
if timeout != nil {
3333
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
3434
}
35-
return Pselect(nfd, r, w, e, ts, nil)
35+
return pselect6(nfd, r, w, e, ts, nil)
3636
}
3737

3838
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

0 commit comments

Comments
 (0)