how to get non-blocking file descriptors from a popen?
Erno Kuusela
erno-news at erno.iki.fi
Sun Jan 27 17:36:26 EST 2002
More information about the Python-list mailing list
Sun Jan 27 17:36:26 EST 2002
- Previous message (by thread): how to get non-blocking file descriptors from a popen?
- Next message (by thread): how to get non-blocking file descriptors from a popen?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <83hep8iafn.fsf at panacea.canonical.org>, Kragen Sitaker <kragen at pobox.com> writes: | "Donn Cave" <donn at u.washington.edu> writes: || You know, || - select & poll really use a file "descriptor" - they'll accept various || alternatives, but only when there's a callable fileno attribute to || return the file descriptor. And when you go that way, any input || through a file object is liable to buffer up data that select can't || see, so the file object is little or no use. Use os.read() instead. | Isn't there a way to fix this? turn off buffering (3rd arg to popen). -- erno
- Previous message (by thread): how to get non-blocking file descriptors from a popen?
- Next message (by thread): how to get non-blocking file descriptors from a popen?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list