mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
logind: minor session time handling tweaks
This commit is contained in:
parent
25a1ab4ed4
commit
061c6607a9
@ -810,7 +810,7 @@ int session_release(Session *s) {
|
||||
return sd_event_add_time(s->manager->event,
|
||||
&s->timer_event_source,
|
||||
CLOCK_MONOTONIC,
|
||||
now(CLOCK_MONOTONIC) + RELEASE_USEC, 0,
|
||||
usec_add(now(CLOCK_MONOTONIC), RELEASE_USEC), 0,
|
||||
release_timeout_callback, s);
|
||||
}
|
||||
|
||||
|
@ -97,6 +97,7 @@ struct Session {
|
||||
|
||||
sd_bus_message *create_message;
|
||||
|
||||
/* Set up when a client requested to release the session via the bus */
|
||||
sd_event_source *timer_event_source;
|
||||
|
||||
char *controller;
|
||||
|
Loading…
x
Reference in New Issue
Block a user