From 5a83ad1eb17cc3c948336cbda793c8c60be700a1 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 22 Mar 2000 03:02:01 +0000 Subject: [PATCH] Correct the parent notification diagnostic emitted from the child process in -background mode (it should report failure if appropriate). --- usr.sbin/ppp/bundle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 6f4ec89f5ecc..42397007307a 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);