From 67bda81defabd8379767f7e5a6f0505f57e2777f Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 12 Oct 1996 02:15:30 +0000 Subject: Remove extraneous comment, fix second-level tabs (one tab and four spaces), and return error message in *err instead of calling Parse_Error. Suggested by: Bruce Evans --- usr.bin/make/main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'usr.bin/make') diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 474bd1b..a358a0e 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: main.c,v 1.12 1996/10/08 04:06:00 steve Exp $ + * $Id: main.c,v 1.13 1996/10/11 03:55:29 steve Exp $ */ #ifndef lint @@ -965,14 +965,8 @@ Cmd_Exec(cmd, err) while(((pid = wait(&status)) != cpid) && (pid >= 0)) continue; - if (cc == -1) { - /* - * Couldn't read all of the child's output -- tell the user - * but still use whatever we read. Null output isn't an - * error unless there was an error reading it. - */ - Parse_Error(PARSE_WARNING, "Couldn't read shell's output"); - } + if (cc == -1) + *err = "Error reading shell's output for \"%s\""; res = (char *)Buf_GetAll (buf, &cc); Buf_Destroy (buf, FALSE); -- cgit v1.1