Update {{project-name}}/src/main.rs

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
pull/94/head
liyan 1 year ago committed by GitHub
parent c6ece63d97
commit 2aeba1b85d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,8 @@ async fn main() -> Result<(), anyhow::Error> {
{% endif %}
env_logger::init();
// Allow current process to lock memory for eBPF resources.
// Bump the memlock rlimit. This is needed for older kernels that don't use the
// new memcg based accounting, see https://lwn.net/Articles/837122/
let rlim = libc::rlimit {
rlim_cur: libc::RLIM_INFINITY,
rlim_max: libc::RLIM_INFINITY,

Loading…
Cancel
Save