Subject: Re: make: print real reason for exec failure
To: None <tech-toolchain@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-toolchain
Date: 05/29/2001 15:08:21
Christos Zoulas wrote:
> In article <200105290015.RAA11306@zen.quick.com.au>,
> Simon J. Gerraty <sjg@quick.com.au> wrote:
> >>Below are some of the changes I've recently made to bmake (autoconf'd
> >>version of netbsd make), that I think would be useful to add to our
> >>make.
> >
> >While I'm at it, below is another change that might be useful:
> >
> > [ using perror() to print a nice error message ]
>
> This change will lead to problems. You cannot use stdio on a child of
> vfork!
You could call strerror() and then write() to spit out the string to
work around this.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/