1
0
Fork 0
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:
MastahSenpai 2021-12-23 00:04:02 +07:00
parent 9ae762c883
commit b6aaab0abc
Signed by untrusted user who does not match committer: Xeffy
GPG key ID: E41C08AD390E7C49

View file

@ -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
}