Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[ python-Bugs-1579477 ] Use flush() before os.exevp()

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


noreply at sourceforge

Oct 18, 2006, 1:04 AM

Post #1 of 1 (232 views)
Permalink
[ python-Bugs-1579477 ] Use flush() before os.exevp()

Bugs item #1579477, was opened at 2006-10-18 08:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1579477&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Guettler (guettli)
Assigned to: Nobody/Anonymous (nobody)
Summary: Use flush() before os.exevp()

Initial Comment:
Hi,

before using one of the os.exec??? functions you should
flush all open file descriptors. (E.g.
sys.stdout.flush()). If you don't the content in the
buffer will get lost.

According to Fredrik Lundh this is a feature, not a bug.

I think the documentation should include a hint:

""".... path must contain an appropriate absolute or
relative path.

****NEW
The current process gets replaces immediately. Open
file descriptors are not flushed. You should flush all
open file descriptors (e.g. sys.stdout.flush()) before
calling one if the above exec functions.
****
"""


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1579477&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.