[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: builtin echo command redirection misbehaves in detached scripts when
From: |
Stephane Chazelas |
Subject: |
Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed |
Date: |
Mon, 10 Sep 2007 12:13:12 +0100 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
On Mon, Sep 10, 2007 at 02:17:41PM +0400, Dmitry Potapov wrote:
[...]
> On Mon, Sep 10, 2007 at 09:08:33AM +0100, Stephane Chazelas wrote:
> > thanks for replying, I gave a list in another email. I tried on
> > Solaris 7 and HPUX and both seem to flush the buffer upon an
> > unsuccessful fflush()
>
> I see... I wonder how they work in regard of my original problem
> described in the Bug#429021, because it is possible to not discard data
> when write failed, but still clean buffer in fflush(). So, functions
> like fwrite, printf will not lose some previously written data on error,
> but fflush() will always have a clean output buffer at return, so
> it will not break existing software, which use dup2 trick.
I'll investigate this evening (BTW, it wasn't Solaris 7, but
Solaris 8).
> > On the other end, how would you force the flush of the buffer?
>
> The flush means to _deliver_ data, which is impossible in this case.
Sorry, I meant flush() as in emptying the buffer (wether
flushing it to the fd or down the drain (discard it)).
BTW, does anybody know why our emails don't seem to make it to
the bash mailing list anymore?
--
Stéphane
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, (continued)
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/09
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Andreas Schwab, 2007/09/09
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/09
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Pierre-Philippe Coupard, 2007/09/09
- Re: Bug#429021: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Aurelien Jarno, 2007/09/10
- Re: Bug#429021: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/10
- Re: Bug#429021: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Dmitry Potapov, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Dmitry Potapov, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Dmitry Potapov, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed,
Stephane Chazelas <=
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Dmitry Potapov, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Chet Ramey, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Andreas Schwab, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Eric Blake-1, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Chet Ramey, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Dmitry Potapov, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Stephane Chazelas, 2007/09/10
- Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Andreas Schwab, 2007/09/09
Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed, Eric Blake, 2007/09/09