Don't forget to flush... :)

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2025-08-29 22:54:05 +02:00
parent 38c3ecd089
commit 230874abd1
2 changed files with 14 additions and 4 deletions

View File

@@ -90,7 +90,8 @@ pub fn authenticate(allocator: std.mem.Allocator, log_writer: *std.Io.Writer, op
child_pid = try std.posix.fork();
if (child_pid == 0) {
try log_writer.writeAll("starting session");
try log_writer.writeAll("starting session\n");
try log_writer.flush();
startSession(log_writer, allocator, options, tty_str, user_entry, handle, current_environment) catch |e| {
shared_err.writeError(e);
@@ -377,7 +378,7 @@ fn xauth(log_writer: *std.Io.Writer, allocator: std.mem.Allocator, display_name:
const status = std.posix.waitpid(pid, 0);
if (status.status != 0) {
try log_writer.print("xauth command failed with status {d}", .{status.status});
try log_writer.print("xauth command failed with status {d}\n", .{status.status});
return error.XauthFailed;
}
}