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/archive%40mail-archive.com