summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 387cec7..6cf390c 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -653,9 +653,9 @@ DoLoop(struct bundle *bundle)
}
if (descriptor_IsSet(&bundle->desc, wfds))
- if (!descriptor_Write(&bundle->desc, bundle, wfds) && nothing_done) {
+ if (descriptor_Write(&bundle->desc, bundle, wfds) <= 0 && nothing_done) {
/*
- * This is disasterous. The OS has told us that something is
+ * This is disastrous. The OS has told us that something is
* writable, and all our write()s have failed. Rather than
* going back immediately to do our UpdateSet()s and select(),
* we sleep for a bit to avoid gobbling up all cpu time.
OpenPOWER on IntegriCloud