summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 )