* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)msgs.c 5.1 (Berkeley) %G%";
* A package to display what is happening every MSG_INTERVAL seconds
* if we are slow connecting.
static struct itimerval itimer
;
static struct timeval wait
= { MSG_INTERVAL
, 0};
static struct timeval undo
= { LONG_TIME
, 0};
signal(SIGALRM
, disp_msg
);
itimer
.it_value
= itimer
.it_interval
= wait
;
setitimer(ITIMER_REAL
, &itimer
, (struct timerval
*)0);
signal(SIGALRM
, SIG_IGN
);
timerclear(&itimer
.it_value
);
timerclear(&itimer
.it_interval
);
setitimer(ITIMER_REAL
, &itimer
, (struct timerval
*)0);