On Fri, 26 Feb 1999, Jean-Marc Lasgouttes wrote:

> Joacim> mea culpa, mea culpa... The other way round: open it
> Joacim> non-blocked, and set it to block with the fcntl.
> 
> Does not work: all I get is an infinite stream of
> LyXComm: Opening connection
> LyXComm: Connection established
> LyXComm: Receiving from fd 6
> LyXComm: Closing connection
> 
> For reference, the lines I used were:
>       infd = open(tmp.c_str(), O_RDONLY|O_NONBLOCK);
>       fcntl(infd,F_SETFL,0);
> 
> If I remove the closeConnection() lines, then the server works, but
> consumes a lot of cpu, since the callback is called a lot.
> 

Give up. ;)

Joacim
-
With both feet on the ground, you won't get very far.
                -- Loesje

Reply via email to