mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
pty: use libc ioctl for compat
This commit is contained in:
@ -83,7 +83,7 @@ pub fn childPreExec(self: Pty) !void {
|
||||
if (setsid() < 0) return error.ProcessGroupFailed;
|
||||
|
||||
// Set controlling terminal
|
||||
if (std.os.linux.ioctl(self.slave, c.TIOCSCTTY, 0) < 0)
|
||||
if (std.c.ioctl(self.slave, c.TIOCSCTTY, @as(c_ulong, 0)) < 0)
|
||||
return error.SetControllingTerminalFailed;
|
||||
|
||||
// Can close master/slave pair now
|
||||
|
Reference in New Issue
Block a user