mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
There's no need to check for a live process because since we're changing flags on the file descriptor, if it's not none, we reset the flags.
This commit is contained in:
parent
bb7dd9c8b7
commit
79d89c7353
@ -647,7 +647,7 @@ class Terminal(object):
|
||||
self.child_fde = None
|
||||
stderr = None
|
||||
finally:
|
||||
if self.isalive() and self.child_fde is not None:
|
||||
if self.child_fde is not None:
|
||||
fcntl.fcntl(self.child_fde, fcntl.F_SETFL, fde_flags)
|
||||
# <---- Process STDERR -------------------------------------------
|
||||
|
||||
@ -677,7 +677,7 @@ class Terminal(object):
|
||||
self.child_fd = None
|
||||
stdout = None
|
||||
finally:
|
||||
if self.isalive() and self.child_fd is not None:
|
||||
if self.child_fd is not None:
|
||||
fcntl.fcntl(self.child_fd, fcntl.F_SETFL, fd_flags)
|
||||
# <---- Process STDOUT -------------------------------------------
|
||||
return stdout, stderr
|
||||
|
Loading…
Reference in New Issue
Block a user