From 1be2746ed505b614b7e2966da03ed31f59516eb7 Mon Sep 17 00:00:00 2001 From: sommerfe Date: Wed, 24 Mar 1999 13:19:26 +0000 Subject: [PATCH] report a sensible error if wait() fails. --- usr.bin/make/compat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index 008ced1a0744..d4b81cef7c85 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat.c,v 1.26 1998/11/11 19:37:06 christos Exp $ */ +/* $NetBSD: compat.c,v 1.27 1999/03/24 13:19:26 sommerfe Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -39,14 +39,14 @@ */ #ifdef MAKE_BOOTSTRAP -static char rcsid[] = "$NetBSD: compat.c,v 1.26 1998/11/11 19:37:06 christos Exp $"; +static char rcsid[] = "$NetBSD: compat.c,v 1.27 1999/03/24 13:19:26 sommerfe Exp $"; #else #include #ifndef lint #if 0 static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: compat.c,v 1.26 1998/11/11 19:37:06 christos Exp $"); +__RCSID("$NetBSD: compat.c,v 1.27 1999/03/24 13:19:26 sommerfe Exp $"); #endif #endif /* not lint */ #endif @@ -344,7 +344,7 @@ CompatRunCommand (cmdp, gnp) } break; } else { - Fatal ("error in wait: %d", stat); + Fatal ("error in wait: %d: %s", stat, strerror(errno)); /*NOTREACHED*/ } }