Author: Fabien Letouzey
Date: 04:35:18 04/14/04
Go up one level in this thread
>>Yes, that's "broken pipe". >>In theory we should be ready for it anytime, but nobody checks the return value >>of printf(). >>Note that there should be two pipes for input and output, but that does not >>change anything. >What do I do when it doesn't return at all? It's not supposed to hang if the pipe is broken (it should report an error, of course). It could do if the pipe was alive, but full. I don't know what's the default buffer size for pipes, 4K or something? I don't think that's what happens in your case. >>Does Frenzee quit peacefully in a console when you press ctrl-Z? >No I get ^Z in the console window. >It exits fine when I type ctrl-C however, that's the normal kill command so >maybe that's what you mean? Not kill (which involves a signal/message/event/...), sending EOF to an application (pure I/O, OS independent). On Unix it's ctrl-D, Dann told me it was ctrl-Z on Windows. From the application point of view, stdin should be closed. Fabien.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.