mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
set sid only on posix
This commit is contained in:
parent
08fb925b34
commit
acf61103b6
2
setup.py
2
setup.py
@ -158,7 +158,7 @@ def run_process(cmds, timeout=None):
|
||||
p = Popen(cmds,
|
||||
stdout=PIPE, stderr=STDOUT,
|
||||
bufsize=1,
|
||||
close_fds=_ON_POSIX, preexec_fn=os.setsid)
|
||||
close_fds=_ON_POSIX, preexec_fn=os.setsid if _ON_POSIX else None)
|
||||
|
||||
q = Queue()
|
||||
t = Thread(target=enqueue_output, args=(p.stdout, q))
|
||||
|
Loading…
Reference in New Issue
Block a user