projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca31a9
)
udev: handle event_timeout=infinity correctly
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 19 Dec 2023 03:28:53 +0000
(12:28 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 22 Dec 2023 19:30:32 +0000
(
04:30
+0900)
This is a paranoia, as even USEC_INFINITY / 3 is finite, it is still so large
in general.
src/udev/udev-spawn.h
patch
|
blob
|
history
diff --git
a/src/udev/udev-spawn.h
b/src/udev/udev-spawn.h
index 5efea2e8862474bc3e134ae3bc55d9a0bc74401e..ba6f1ae872ed081aba685fb4d8705f4ba924bcd0 100644
(file)
--- a/
src/udev/udev-spawn.h
+++ b/
src/udev/udev-spawn.h
@@
-24,5
+24,8
@@
int udev_event_spawn(
void udev_event_execute_run(UdevEvent *event, usec_t timeout_usec, int timeout_signal);
static inline usec_t udev_warn_timeout(usec_t timeout_usec) {
+ if (timeout_usec == USEC_INFINITY)
+ return USEC_INFINITY;
+
return DIV_ROUND_UP(timeout_usec, 3);
}