summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-10-24 22:36:31 +0000
committerbrian <brian@FreeBSD.org>1997-10-24 22:36:31 +0000
commit5edc0d2f34a8146cdc6019a477e2078f8357b165 (patch)
tree2ce0300bc6079fbdee302a5970dfec3f97d44ac6 /usr.sbin/ppp/main.c
parenta5212e361a194d2c45fe21b7d02d3734c4ffe4d3 (diff)
downloadFreeBSD-src-5edc0d2f34a8146cdc6019a477e2078f8357b165.zip
FreeBSD-src-5edc0d2f34a8146cdc6019a477e2078f8357b165.tar.gz
sleep => nointr_sleep
usleep => nointr_usleep (not just a #define) Already done by: ache
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 23b0ea7..cea8427 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.82 1997/10/07 00:56:57 brian Exp $
+ * $Id: main.c,v 1.83 1997/10/16 23:55:18 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -166,7 +166,7 @@ Cleanup(int excode)
{
OsLinkdown();
OsCloseLink(1);
- sleep(1);
+ nointr_sleep(1);
if (mode & MODE_AUTO)
DeleteIfRoutes(1);
(void) unlink(pid_filename);
@@ -708,7 +708,7 @@ DoLoop()
} else if (mode & MODE_DEDICATED) {
if (modem < 0)
while (OpenModem(mode) < 0)
- sleep(VarReconnectTimer);
+ nointr_sleep(VarReconnectTimer);
}
fflush(VarTerm);
@@ -787,7 +787,7 @@ DoLoop()
LogPrintf(LogCHAT, "Dial attempt %u\n", tries);
if ((res = DialModem()) == EX_DONE) {
- sleep(1); /* little pause to allow peer starts */
+ nointr_sleep(1); /* little pause to allow peer starts */
ModemTimeout();
PacketMode();
dial_up = FALSE;
@@ -848,7 +848,7 @@ DoLoop()
* ppp process eats many CPU time.
*/
#ifndef SIGALRM
- usleep(TICKUNIT);
+ nointr_usleep(TICKUNIT);
TimerService();
#else
handle_signals();
@@ -931,7 +931,7 @@ DoLoop()
}
if (FD_ISSET(modem, &rfds)) { /* something to read from modem */
if (LcpFsm.state <= ST_CLOSED)
- usleep(10000);
+ nointr_usleep(10000);
n = read(modem, rbuff, sizeof(rbuff));
if ((mode & MODE_DIRECT) && n <= 0) {
DownConnection();
OpenPOWER on IntegriCloud