mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 02:10:31 -05:00
10 lines
240 B
Go
10 lines
240 B
Go
// +build linux
|
|
|
|
package goselect
|
|
|
|
import "syscall"
|
|
|
|
func sysSelect(n int, r, w, e *FDSet, timeout *syscall.Timeval) error {
|
|
_, err := syscall.Select(n, (*syscall.FdSet)(r), (*syscall.FdSet)(w), (*syscall.FdSet)(e), timeout)
|
|
return err
|
|
}
|