mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +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;
|
if (setsid() < 0) return error.ProcessGroupFailed;
|
||||||
|
|
||||||
// Set controlling terminal
|
// 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;
|
return error.SetControllingTerminalFailed;
|
||||||
|
|
||||||
// Can close master/slave pair now
|
// Can close master/slave pair now
|
||||||
|
Reference in New Issue
Block a user