mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 10:16:12 +03:00
fix errno handle
This commit is contained in:
@ -130,7 +130,7 @@ pub fn cloneInto(cgroup: []const u8) !posix.pid_t {
|
||||
};
|
||||
|
||||
const rc = linux.syscall2(linux.SYS.clone3, @intFromPtr(&args), @sizeOf(@TypeOf(args)));
|
||||
return switch (posix.errno(rc)) {
|
||||
return switch (std.os.linux.E.init(rc)) {
|
||||
.SUCCESS => @as(posix.pid_t, @intCast(rc)),
|
||||
else => |errno| err: {
|
||||
log.err("unable to clone: {}", .{errno});
|
||||
|
Reference in New Issue
Block a user