mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
use syscall.Open with O_NONBLOCK flag and os.NewFile after ioctls
so that the file is pollable.
This commit is contained in:
parent
ab2cda57af
commit
5d0ec8c62b
2 changed files with 11 additions and 9 deletions
|
@ -88,7 +88,7 @@ func TestCloseUnblockPendingRead(t *testing.T) {
|
|||
close(c)
|
||||
}()
|
||||
|
||||
// make sure ifce.Close() happens after ifce.Read()
|
||||
// make sure ifce.Close() happens after ifce.Read() blocks
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
ifce.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue