FIFO problems
Donn Cave
donn at drizzle.com
Thu Sep 11 02:24:51 EDT 2003
More information about the Python-list mailing list
Thu Sep 11 02:24:51 EDT 2003
- Previous message (by thread): FIFO problems
- Next message (by thread): FIFO problems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoth Tobias Pfeiffer <BoteDesSchattens at web.de>: ... | So at the beginning everything works fine. I can start the client prog | and they will talk and understand to each other. The same if I connect | with three or more clients simultaneously (?). If one of these clients | exits, no problem. But when the last process exists and closes the | FIFO-file which was opened by os.open(infifo, os.O_WRONLY), the server | begins to print an empty string everytime it goes through the loop, | means it won't wait for a complete line to appear before continuing. | Why? It's at end of file. That's what happens when the write end of a pipe closes, and there's no data left: subsequent reads return end of file, which in Python is an empty string. You may close it and open it again at this point. Donn Cave, donn at drizzle.com
- Previous message (by thread): FIFO problems
- Next message (by thread): FIFO problems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list