Fix X11 session logout

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2025-03-06 23:32:23 +01:00
parent 1eca889e45
commit 4dcef65b1c

View File

@@ -455,7 +455,7 @@ fn executeX11Cmd(shell: [*:0]const u8, pw_dir: [*:0]const u8, options: AuthOptio
interop.xcb.xcb_disconnect(xcb);
std.posix.kill(x_pid, 0) catch return;
std.posix.kill(x_pid, std.posix.SIG.TERM) catch {};
std.posix.kill(x_pid, std.posix.SIG.KILL) catch {};
var status: c_int = 0;
_ = std.c.waitpid(x_pid, &status, 0);