mirror of
https://github.com/ii64/gouring.git
synced 2025-04-26 05:42:48 +02:00
fix(): ringfd close
Signed-off-by: MastahSenpai <26342994+ii64@users.noreply.github.com>
This commit is contained in:
parent
9ae762c883
commit
b6aaab0abc
1 changed files with 7 additions and 0 deletions
7
core.go
7
core.go
|
@ -1,6 +1,8 @@
|
|||
package gouring
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
@ -22,6 +24,11 @@ func (r *Ring) Close() (err error) {
|
|||
err = errors.Wrap(err, "close")
|
||||
return
|
||||
}
|
||||
|
||||
if err = syscall.Close(r.fd); err != nil {
|
||||
err = errors.Wrap(err, "close")
|
||||
return
|
||||
}
|
||||
// tbd..
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue