mirror of
https://github.com/systemd/systemd.git
synced 2024-11-13 23:21:08 +03:00
Merge pull request #714 from zonque/automount
automount: do not start expiration timer for TimeoutIdleSec=0
This commit is contained in:
commit
0b071992bb
@ -672,6 +672,9 @@ static int automount_start_expire(Automount *a) {
|
|||||||
|
|
||||||
assert(a);
|
assert(a);
|
||||||
|
|
||||||
|
if (a->timeout_idle_usec == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC);
|
timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC);
|
||||||
|
|
||||||
if (a->expire_event_source) {
|
if (a->expire_event_source) {
|
||||||
|
Loading…
Reference in New Issue
Block a user