* Copyright (c) 1983 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)msgs.c 5.5 (Berkeley) %G%";
* A package to display what is happening every MSG_INTERVAL seconds
* if we are slow connecting.
signal(SIGALRM
, disp_msg
);
itimer
.it_value
.tv_sec
= itimer
.it_interval
.tv_sec
= MSG_INTERVAL
;
itimer
.it_value
.tv_usec
= itimer
.it_interval
.tv_usec
= 0;
setitimer(ITIMER_REAL
, &itimer
, (struct timerval
*)0);
timerclear(&itimer
.it_value
);
timerclear(&itimer
.it_interval
);
setitimer(ITIMER_REAL
, &itimer
, (struct timerval
*)0);
signal(SIGALRM
, SIG_DFL
);