Re: distinct fcntl flags for stdin and stdout

2008-12-01 Thread Nick Craig-Wood
mbuna <[EMAIL PROTECTED]> wrote: > Hello, > when I set non blocking flag with fcntl on sys.stdin, then sys.stdout > turns into non blocking mode too. Is it normal behaviour? How can I > turn stdin into non blocking mode but not stdout? Thanks. > > This is a quick program that shows the (my?)

distinct fcntl flags for stdin and stdout

2008-11-27 Thread mbuna
Hello, when I set non blocking flag with fcntl on sys.stdin, then sys.stdout turns into non blocking mode too. Is it normal behaviour? How can I turn stdin into non blocking mode but not stdout? Thanks. This is a quick program that shows the (my?) problem: import fcntl import os import sys print