summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-22 03:02:01 +0000
committerbrian <brian@FreeBSD.org>2000-03-22 03:02:01 +0000
commitb192194923d915311410ceb23dc17678d01c9d7d (patch)
tree1bdaf5db28c7aca8f7b8838d6f6f1f24505c24e1 /usr.sbin/ppp/bundle.c
parent76f86d485000002b2f56a8e02c0dd23032423f40 (diff)
downloadFreeBSD-src-b192194923d915311410ceb23dc17678d01c9d7d.zip
FreeBSD-src-b192194923d915311410ceb23dc17678d01c9d7d.tar.gz
Correct the parent notification diagnostic emitted from the child
process in -background mode (it should report failure if appropriate).
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 6f4ec89..4239700 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -165,7 +165,8 @@ bundle_Notify(struct bundle *bundle, char c)
{
if (bundle->notify.fd != -1) {
if (write(bundle->notify.fd, &c, 1) == 1)
- log_Printf(LogPHASE, "Parent notified of success.\n");
+ log_Printf(LogPHASE, "Parent notified of %s\n",
+ c == EX_NORMAL ? "success" : "failure");
else
log_Printf(LogPHASE, "Failed to notify parent of success.\n");
close(bundle->notify.fd);
OpenPOWER on IntegriCloud