DevinLeamy opened a new pull request, #512:
URL: https://github.com/apache/mesos/pull/512
Correctly handling eBPF file descriptors requires some subtle knowledge
about how loading and unloading eBPF programs works.
Specifically, to unload an eBPF program there cannot be any open file
descriptors to the program and the program cannot be attached.
To avoid requiring users of the API to know that the file descriptor
returned by `ebpf::load()` needs to be closed before the loaded program can be
detached, we remove `ebpf::load()` from the public interface and update
`ebpf::cgroups2::load()` to:
1. Load a program,
2. attach the program, and
3. close the loaded program's file descriptor, so detaching it will unload
it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]