Conversation
|
@lilioid Could you provide a test-case? |
Nothing fully fleshed out at the moment (maybe over the weekend though).
And then to test it I was doing this: $ run0 --user=$(whoami) --chdir=$(pwd) --property "AmbientCapabilities=CAP_NET_ADMIN"
DMIN"
$ iex -S mix |
|
The respective call would now be let _ = handle.select(
env,
handle.device.as_raw_fd().into(),
SelectMode::Read,
None,
None
);Works on my machine :) |
|
Seeing that there quite a few optional parameters, should we maybe use the builder pattern here? Like |
|
The new call works well for me, thank you for this work!
I don't really see the need tbh. There's already quite some wrapping and type conversion going on and I wouldn't overcomplicate it. |
|
Ahh but I just saw is that maybe the What |
|
Another issue is that in order to correctly use the API a user needs to always call
I'm not sure if this is possible with the current API when a process dies and all handles to the Resource object are lost. |
|
Quoting the docs:
The original C API simply does not distinguish different types of terms the same way as we do. If you want actual custom messages, we'd need to implement the newer |
|
Regarding the necessity to call
But for this we would indeed need to pass the original
|
|
A few notes (also for me :)):
|
Try to provide a proper Rust interface to
enif_select, ref #735.