Get it building in a rootless container

This commit is contained in:
Kovid Goyal
2024-08-12 19:24:48 +05:30
parent 6ff943c10f
commit b872bbff49
2 changed files with 3 additions and 2 deletions

View File

@@ -306,6 +306,7 @@ class PTY:
if argv is None:
from kitty.child import openpty
self.master_fd, self.slave_fd = openpty()
self.child_pid = 0
else:
self.child_pid, self.master_fd = fork()
self.is_child = self.child_pid == CHILD