Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Inko
inko
Commits
87fc0364
Verified
Commit
87fc0364
authored
Dec 20, 2019
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix kqueue network poller deprecation
parent
dcc7798b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vm/src/network_poller/kqueue.rs
vm/src/network_poller/kqueue.rs
+3
-2
No files found.
vm/src/network_poller/kqueue.rs
View file @
87fc0364
...
...
@@ -11,7 +11,7 @@ use nix::sys::event::{
};
use
nix
::
unistd
::
close
;
use
std
::
io
;
use
std
::
mem
;
use
std
::
mem
::
MaybeUninit
;
use
std
::
ops
::
Drop
;
use
std
::
os
::
unix
::
io
::{
AsRawFd
,
RawFd
};
...
...
@@ -114,7 +114,8 @@ impl NetworkPoller {
kevent!
(
fd
,
EVFILT_WRITE
,
flags
|
write_flag
,
id
),
];
let
mut
changed
:
[
KEvent
;
2
]
=
unsafe
{
mem
::
uninitialized
()
};
let
mut
changed
:
[
KEvent
;
2
]
=
unsafe
{
MaybeUninit
::
uninit
()
.assume_init
()
};
map_error
(
kevent_ts
(
self
.fd
,
&
changes
,
&
mut
changed
,
None
))
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment