summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2024-03-01 16:57:41 +0100
committerSimon Rettberg2024-03-01 16:57:41 +0100
commitd8bda21b8fb25d0e98bd647451881ebf59ada6c7 (patch)
tree6a14c9582ed519696a8a1a851a6ac8a8adfa9480 /src
parentImprove idle time tracking wrt xscreensaver activity (diff)
downloadidle-daemon-master.tar.gz
idle-daemon-master.tar.xz
idle-daemon-master.zip
Fix runaway varargs list crashing "loginctl terminate-session" callHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 7cd5e5c..729e6ba 100644
--- a/src/util.c
+++ b/src/util.c
@@ -96,7 +96,7 @@ void killSession( const struct user * user )
// Async do NOT use return from here on
if ( user->sessionName[0] != '\0' ) {
printf( "Terminating session %s of %s.\n", user->sessionName, user->user );
- run( true, "loginctl", "terminate-session", user->sessionName );
+ run( true, "loginctl", "terminate-session", user->sessionName, (char*)NULL );
sleep( 2 );
if ( kill( user->sessionLeader, SIGTERM ) == -1
|| user->sessionHead == 0 || kill( user->sessionHead, 0 ) == -1 )