for windows

This commit is contained in:
Hugo Wang 2017-02-10 23:50:03 +08:00
parent bebfc7fab4
commit 8bc134b081

View file

@ -1941,6 +1941,8 @@ class CommandPipeline:
if self.ended:
return
self.end_internal(tee_output=tee_output)
if ON_WINDOWS:
return
pgid = os.getpgid(0)
if self._term_pgid is None or pgid == self._term_pgid:
return