bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #33134] spurious error when stdout is already closed


From: Philip Guenther
Subject: Re: [bug #33134] spurious error when stdout is already closed
Date: Wed, 20 Apr 2011 18:58:31 -0700

On Wed, Apr 20, 2011 at 6:03 PM, David Boyce <address@hidden> wrote:
...
> Ironically, make's attempt to be super-duper careful about catching write
> errors to stdout (in the close_stdout function) results in a spurious error
> message when the user has already closed stdout:
>
> % cat makefile
> .PHONY: all
> all:; date
>
> % make 1>&-
> make: write error
>
> Patch attached.

Could you explain why you think that's spurious?  Make wanted to write
"date" to stdout and the write failed.  Seems legit to me.

(I'm not sure why it doesn't say "make: write error: Bad file
descriptor" like it does if you change the command invoked to ":", but
that's a distinct issue.)


Philip Guenther



reply via email to

[Prev in Thread] Current Thread [Next in Thread]