Skip to content

pw_upload: wake up less frequently from inotify#69

Merged
matttbe merged 1 commit intolinux-netdev:mainfrom
jmberg:inotify-timeout
Feb 11, 2026
Merged

pw_upload: wake up less frequently from inotify#69
matttbe merged 1 commit intolinux-netdev:mainfrom
jmberg:inotify-timeout

Conversation

@jmberg
Copy link
Member

@jmberg jmberg commented Feb 11, 2026

The timeout parameter for inotify.read() is specified in milliseconds, and therefore the thread is constantly waking up just to see if it should terminate. Change it to only do that every two seconds, as was (likely) intended.

Addresses #68.

The timeout parameter for inotify.read() is specified in
milliseconds, and therefore the thread is constantly waking
up just to see if it should terminate. Change it to only do
that every two seconds, as was (likely) intended.

Addresses linux-netdev#68.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Copy link
Member

@matttbe matttbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

(Merging as it was already ACKed by @kuba-moo)

@matttbe matttbe merged commit f5d3677 into linux-netdev:main Feb 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants