From: brian Date: Sun, 2 Apr 2000 01:36:23 +0000 (+0000) Subject: Don't claim (in the log file) that the parent was notified X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e4cc2abed7a60674eafdeccb466b1bdc9300425c;p=openbsd Don't claim (in the log file) that the parent was notified of success if the child process in -background mode failed to connect. --- diff --git a/usr.sbin/ppp/ppp/bundle.c b/usr.sbin/ppp/ppp/bundle.c index 8f645409628..5b271653a3a 100644 --- a/usr.sbin/ppp/ppp/bundle.c +++ b/usr.sbin/ppp/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: bundle.c,v 1.32 2000/03/19 10:33:32 brian Exp $ + * $OpenBSD: bundle.c,v 1.33 2000/04/02 01:36:23 brian Exp $ */ #include @@ -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);