On Thu, 25 Feb 1999, Jean-Marc Lasgouttes wrote:

> Joacim> remove the O_NONBLOCK in the open(), add
> Joacim> fcntl(fd,F_SETFL,O_NONBLOCK) on the next line (or whatever the
> Joacim> fd is named). (no need for a signal handler for SIGPIPE for
> Joacim> the reader process, and the "reset connection"-lines can stay
> Joacim> too)
> 
> I tried it, and LyX just sits there blocked. The relvant lines I tried
> are
> 
>       infd = open(tmp.c_str(), O_RDONLY);
>       fcntl(infd,F_SETFL,O_NONBLOCK);
> 
> gdb says that LyX is blocked at the open().

mea culpa, mea culpa... The other way round: open it non-blocked, and set
it to block with the fcntl.


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

Reply via email to