Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: For engine authors, end-of-file on input

Author: Sune Fischer

Date: 04:46:30 04/14/04

Go up one level in this thread


On April 14, 2004 at 07:35:18, Fabien Letouzey wrote:

>
>>>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.

That could be exactly what happens, 4k is nothing in multipv mode.

>>>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.

'ctrl-Z' does nothing unless I also press return, then the engine is killed.

-S.

>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.