|
|
@@ -182,8 +182,8 @@ const (
|
|
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|
|
var ts *Timespec
|
|
|
if timeout >= 0 {
|
|
|
- ts = new(*Timespec)
|
|
|
- *ts = NsecToTimespec(timeout * 1e6)
|
|
|
+ ts = new(Timespec)
|
|
|
+ *ts = NsecToTimespec(int64(timeout) * 1e6)
|
|
|
}
|
|
|
if len(fds) == 0 {
|
|
|
return ppoll(nil, 0, ts, nil)
|