From 4b28cc755e30f0d8fee9365d53b0d5db8c440c59 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 12 Jan 2017 01:07:26 +0530 Subject: [PATCH] closerange() in child works on OS X also --- kitty/child.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kitty/child.py b/kitty/child.py index 811352913..b24135e25 100644 --- a/kitty/child.py +++ b/kitty/child.py @@ -9,7 +9,7 @@ import fcntl import signal from threading import Thread -from .constants import terminfo_dir, isosx +from .constants import terminfo_dir def remove_cloexec(fd): @@ -52,8 +52,7 @@ class Child: else: os.dup2(slave, i) os.close(slave), os.close(master) - if not isosx: # Apparently some OS X systemlibraries open file descriptors that cause EXC_GUARD crashes when closed - os.closerange(3, 200) + os.closerange(3, 200) # Establish the controlling terminal (see man 7 credentials) os.close(os.open(os.ttyname(1), os.O_RDWR)) os.environ['TERM'] = self.opts.term