From ecc44fabf7ad6bb030b8f21a1afc5292d8796771 Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 4 Jun 2003 00:07:45 +0000 Subject: Beefed up some of the comments. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@203 656d521f-e311-0410-88e0-e7920216d269 --- pexpect/pexpect.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index 03504a6..bc48ca9 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -222,11 +222,13 @@ class spawn: Note that calling close() more than once is valid. This emulates standard Python behavior with files. If wait is set to True then close will wait - for the exit status of the process. This is a blocking call, - but this usually takes almost no time at all. If you are + for the exit status of the process. Doing a wait is a blocking call, + but this usually takes almost no time at all. Generally, + you don't have to worry about this. If you are creating lots of children then you usually want to call wait. - Only set wait to false if yo uknow the child will + Only set wait to false if you know the child will continue to run after closing the controlling TTY. + Otherwise you will end up with defunct (zombie) processes. """ if self.child_fd != -1: if not self.__child_fd_owner: -- cgit v1.2.1