We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c004fd1 commit f20f476Copy full SHA for f20f476
kitty/child.py
@@ -1,7 +1,6 @@
1
#!/usr/bin/env python3
2
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
3
4
-import fcntl
5
import os
6
import sys
7
from collections import defaultdict
@@ -144,7 +143,7 @@ def environ_of_process(pid: int) -> Dict[str, str]:
144
143
145
146
def remove_cloexec(fd: int) -> None:
147
- fcntl.fcntl(fd, fcntl.F_SETFD, fcntl.fcntl(fd, fcntl.F_GETFD) & ~fcntl.FD_CLOEXEC)
+ os.set_inheritable(fd, True)
148
149
150
def remove_blocking(fd: int) -> None:
0 commit comments