From 80e37c722b1ab1e06c000f5a4ba9a6d6a361c192 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 19 May 1997 03:02:36 +0000 Subject: [PATCH] Output exit status description of child in background mode. --- usr.sbin/ppp/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 5e74744555ac..40bbbb7f0c18 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.51 1997/05/17 16:08:46 brian Exp $ + * $Id: main.c,v 1.52 1997/05/19 02:00:06 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -462,8 +462,9 @@ char **argv; printf("PPP enabled.\n"); LogPrintf (LOG_PHASE_BIT, "Parent: PPP enabled.\n"); } else { - printf("Child failed %d.\n",(int)c); - LogPrintf (LOG_PHASE_BIT, "Parent: Child failed %d.\n",(int)c); + printf("Child failed (%s).\n",ex_desc((int)c)); + LogPrintf(LOG_PHASE_BIT, "Parent: Child failed (%s).\n", + ex_desc((int)c)); } close (BGFiledes[0]); }