summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2000-04-02 01:36:24 +0000
committerbrian <brian@cvs.openbsd.org>2000-04-02 01:36:24 +0000
commitd68e93e479cdfd6ddc9493a358287886ddb8dc7b (patch)
treed2374f3bcf16419454e5545e197d979f2000323e
parentfcce3b94d73b39de4847894c86696258d23dfd2a (diff)
Don't claim (in the log file) that the parent was notified
of success if the child process in -background mode failed to connect.
-rw-r--r--usr.sbin/ppp/ppp/bundle.c5
1 files changed, 3 insertions, 2 deletions
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 <sys/param.h>
@@ -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);