Use SIGINT instead of SIGCHILD for TTY control transfer

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-04-30 14:38:56 +02:00
parent 51c5c3ee0b
commit 15cd0c4779
2 changed files with 3 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ fn startSession(
// Signal to the session process to give up control on the TTY
try log_file.info(io, "auth/sys", "releasing tty", .{});
std.posix.kill(options.session_pid, std.posix.SIG.CHLD) catch return error.TtyControlTransferFailed;
std.posix.kill(options.session_pid, std.posix.SIG.INT) catch return error.TtyControlTransferFailed;
// Execute what the user requested
switch (current_environment.display_server) {