os.popen4 and popen2.popen4 undocumented behavior

  • Thread starter Roman Yakovenko
  • Start date
R

Roman Yakovenko

Hi. May be I found bug may be not, but I definitely could not find answer in documentation and GOOGLE.

Environment: Windows XP and Python 2.3

Description:

I have program that returns negative numbers as errors

int main()
{ return -1; }

Traceback (most recent call last):
File "<pyshell#15>", line 1, in -toplevel-
so.close()
IOError: (0, 'Error')
Traceback (most recent call last):
File "<pyshell#18>", line 1, in -toplevel-
so.close()
IOError: (0, 'Error')

First of all I don't understand why it makes the difference what is return value
of the process. If main will return non negative number all will work just fine.


Thanks for help.

Roman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top