Code returned by poll() method on popen2.Popne3/4 objects
Eric Brunel
eric.brunel at pragmadev.com
Thu Jan 2 04:47:26 EST 2003
More information about the Python-list mailing list
Thu Jan 2 04:47:26 EST 2003
- Previous message (by thread): Bug? (ActivePython)
- Next message (by thread): Httplib : ResponseNotReady, even after sourceforge patch #551273
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, I'm playing with the poll() method on popen2.Popen4 objects and I noticed a little ambiguity in its documentation. It says: """ Returns -1 if child process hasn't completed yet, or its return code otherwise. """ but apparently, the returned value is not only the "return code" (which for me is the value passed to the program's call to exit(...)), but the same value returned by os.wait(), including the signal number that killed the program in the low byte and the actual return code in the high byte. Can anyone confirm that? If it is so, IMHO, it would be better to change the documentation of the os module to make it clearer. TIA -- - Eric Brunel <eric.brunel at pragmadev.com> - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
- Previous message (by thread): Bug? (ActivePython)
- Next message (by thread): Httplib : ResponseNotReady, even after sourceforge patch #551273
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list