Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not apply udev-monitor-set-timeout! to #f values. #9

Merged

Conversation

Apteryks
Copy link
Contributor

This is a follow-up to commit 980fe40, which changed the default timeout-sec and timeout-usec values to #f, with the behavior of waiting indefinitely for an event.

  • modules/udev/monitor.scm (make-udev-monitor): Filter out arguments whose values are #f.

This is a follow-up to commit 980fe40, which changed the default timeout-sec
and timeout-usec values to #f, with the behavior of waiting indefinitely for
an event.

* modules/udev/monitor.scm (make-udev-monitor): Filter out arguments whose
values are #f.
@artyom-poptsov artyom-poptsov merged commit 3c5c2b8 into artyom-poptsov:master Dec 28, 2023
4 checks passed
@Apteryks
Copy link
Contributor Author

I think I'll want to revisit this fix; but I don't have an immediate solution.

One problem I see is that if someone specifies #:timeout-sec #f and #:timeout-usecs 100, the udev-monitor-remove-filters! procedure would now be called with usecs as secs, silently.

I think I should handle #f values in udev-monitor-remove-filters! in C.

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