dont cloes_fds if stdout/stderr is piped
This commit is contained in:
parent
591374d6d1
commit
7380c9aab7
2 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ DirReqStatistics 0
|
|||
cmd = [tor, '--defaults-torrc', defaults, '-f', torrc]
|
||||
while self.running:
|
||||
self.p = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=1,
|
||||
universal_newlines=True, close_fds=True, start_new_session=True)
|
||||
universal_newlines=True, start_new_session=True)
|
||||
for line in self.p.stdout:
|
||||
self._status.append(line)
|
||||
logger.debug(line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue