summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-19 03:02:36 +0000
committerbrian <brian@FreeBSD.org>1997-05-19 03:02:36 +0000
commitd13ad90ef44e414ff2bd83a499c623d6142a9ed9 (patch)
tree91b81f4f654eae1f9030ed2afdeea8f53e63b2ea
parentee01b280507bf1f39a39f9beb574b6653321fd1c (diff)
downloadFreeBSD-src-d13ad90ef44e414ff2bd83a499c623d6142a9ed9.zip
FreeBSD-src-d13ad90ef44e414ff2bd83a499c623d6142a9ed9.tar.gz
Output exit status description of child in background mode.
-rw-r--r--usr.sbin/ppp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 5e74744..40bbbb7 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]);
}
OpenPOWER on IntegriCloud