Skip to content
Merged

V3 #10

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
libbpftune: sleep time when getting inotification is too small
we want to retry to ensure we get the library when it's copied
into a directory we are watching; 5 usleep(100)s before retrying
are too fast and on aarch64 we see "file too short" errors
after retrying.

Signed-off-by: Alan Maguire <[email protected]>
  • Loading branch information
alan-maguire committed May 30, 2023
commit f258a455aeb30dee820a3d136455ef068d01d4c9
2 changes: 1 addition & 1 deletion src/libbpftune.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ struct bpftuner *bpftuner_init(const char *path)
tuner->handle = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
if (tuner->handle)
break;
usleep(100);
usleep(1000);
}
bpftune_cap_drop();
if (!tuner->handle) {
Expand Down