mirror of
https://github.com/fairyglade/ly.git
synced 2026-05-06 07:10:36 +00:00
Fix xauth log not being flushed
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -431,7 +431,12 @@ fn xauth(log_file: *LogFile, allocator: std.mem.Allocator, io: std.Io, display_n
|
|||||||
var status: c_int = undefined;
|
var status: c_int = undefined;
|
||||||
const result = std.posix.system.waitpid(pid, &status, 0);
|
const result = std.posix.system.waitpid(pid, &status, 0);
|
||||||
if (interop.isError(result) or status != 0) {
|
if (interop.isError(result) or status != 0) {
|
||||||
try log_file.file_writer.interface.print("xauth command failed with status {d}\n", .{status});
|
try log_file.err(
|
||||||
|
io,
|
||||||
|
"auth/x11",
|
||||||
|
"xauth command failed with status: {d}",
|
||||||
|
.{status},
|
||||||
|
);
|
||||||
return error.XauthFailed;
|
return error.XauthFailed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user