This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Closing a pipe can lead to uncompleted command
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: loewis, sunmountain
Priority: normal Keywords:

Created on 2006-08-14 12:11 by sunmountain, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg29514 - (view) Author: Stefan Sonnenberg (sunmountain) Date: 2006-08-14 12:11
I'm using python version 
2.3.3 (#0, Apr 22 2004, 11:33:00) [SunCC 5.5]
under Solaris 9.

I'm doing basically this:

p = os.popen("cmd","w")
p.write(cmd_string)
p.close()

Sometimes the command opened with popen does not
work completely.
A explicit p.flush() is needed to get the desired
behaviour.

msg29515 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-08-16 13:12
Logged In: YES 
user_id=21627

I can't reproduce this, and I can't see anything in the
Python source code that might be causing it. Can you provide
a reproducable test case?
msg29516 - (view) Author: Stefan Sonnenberg (sunmountain) Date: 2006-08-16 13:28
Logged In: YES 
user_id=1575341

Sorry, that is not possible, because
I work for a financial institution and the source
can't be published.

msg29517 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-08-16 15:26
Logged In: YES 
user_id=21627

Ok, closing it as "works for me", then. Thanks for the report.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43817
2006-08-14 12:11:29sunmountaincreate