summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2015-09-22 14:30:48 +0100
committerThomas Kluyver <takowl@gmail.com>2015-09-22 14:30:48 +0100
commita8e0b19beb06500c5d92597a4a5b4e4e58ecc85b (patch)
treeb7ac7893e2bb5e42ffa8b856790e3c5104026eb1
parent767cf908c189f9acb9d5c422e1dda2612d8c005d (diff)
parent599ef012942a21845f968a4bf725d46e007dcb4b (diff)
downloadpexpect-a8e0b19beb06500c5d92597a4a5b4e4e58ecc85b.tar.gz
Merge pull request #264 from pexpect/bugfix-honor-force-close
Honor 'force=False' when set on p.close()
-rw-r--r--pexpect/pty_spawn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py
index 3e28b74..c398af4 100644
--- a/pexpect/pty_spawn.py
+++ b/pexpect/pty_spawn.py
@@ -292,7 +292,7 @@ class spawn(SpawnBase):
and SIGINT). '''
self.flush()
- self.ptyproc.close()
+ self.ptyproc.close(force=force)
self.isalive() # Update exit status from ptyproc
self.child_fd = -1