[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two way pipe
From: |
Ludovic Courtès |
Subject: |
Re: Two way pipe |
Date: |
Fri, 27 Apr 2007 10:09:31 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Hello!
Neil Jerram <address@hidden> writes:
> address@hidden (Ludovic Courtès) writes:
>
>> Doesn't `OPEN_BOTH' do what you want?
>
> Yes, indeed. Believe it or not, I was looking at a 1.6 distribution
> and didn't think to check 1.8 or CVS. (Newbie alert! :-))
Oh, gosh, I thought you were using cutting-edge technology! ;-)
> So far I've been playing with (open-input-pipe "mplayer -slave ..."),
> but not bothering to select on and read from the pipe. If the track
> being played is longer than about 3 minutes, mplayer crashes - and I
> assume that's because its write to stdout is failing unexpectedly. So
> for some programs, it seems that filling up the pipe buffer can be a
> problem even if in only one direction.
How does it crash? `EPIPE' or some such?
> When I implement things fully this won't be a problem, because the
> Guile app will be reading any available data from the pipe as soon as
> it's there, and only very rarely writing anything.
Ok. Out of curiosity, are you trying to write a Guile front-end (if
that's not too much of a nosy question)?
Thanks,
Ludovic.