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: Duplicate output with unbuffered IO after fork
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: aivazis, tim.peters
Priority: normal Keywords:

Created on 2005-03-02 04:53 by aivazis, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bug.py aivazis, 2005-03-02 04:53 bug.py: duplicate the bug
Messages (4)
msg24428 - (view) Author: Michael Aivazis (aivazis) Date: 2005-03-02 04:53
When doing unbuffered IO, I get the same output twice
after a fork. If I open my file with no buffering, this
problem does not occur. If I don't fork, the problem
goies away also. 

The bug is present in 2.3 and 2.4. Haven't tried 2.5.
msg24429 - (view) Author: Michael Aivazis (aivazis) Date: 2005-03-02 05:00
Logged In: YES 
user_id=30635

OS info: Linux version 2.6.7 (root@amalfi) (gcc version
3.3.5 (Debian 1:3.3.5-6)) #2 Wed Jan 26 07:20:32 PST 2005

msg24430 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2005-03-02 05:17
Logged In: YES 
user_id=31435

I really don't know what you mean, but what happens if you 
try the same thing in C?  Python defers to the platform C 
libraries for all I/O, so if a program in C does the same thing, 
that's the cause.
msg24431 - (view) Author: Michael Aivazis (aivazis) Date: 2005-03-02 05:40
Logged In: YES 
user_id=30635

I really botched this one. Long day. My apologies
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41639
2005-03-02 04:53:55aivaziscreate