diff options
author | brian <brian@FreeBSD.org> | 1997-05-19 03:02:36 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-19 03:02:36 +0000 |
commit | d13ad90ef44e414ff2bd83a499c623d6142a9ed9 (patch) | |
tree | 91b81f4f654eae1f9030ed2afdeea8f53e63b2ea | |
parent | ee01b280507bf1f39a39f9beb574b6653321fd1c (diff) | |
download | FreeBSD-src-d13ad90ef44e414ff2bd83a499c623d6142a9ed9.zip FreeBSD-src-d13ad90ef44e414ff2bd83a499c623d6142a9ed9.tar.gz |
Output exit status description of child in background mode.
-rw-r--r-- | usr.sbin/ppp/main.c | 7 |
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]); } |