static char sccsid
[] = "@(#)dn11.c 4.14 (Berkeley) 6/25/83";
* Routines for dialing up on DN-11
int dn_abort(), alarmtr();
static int child
= -1, dn
;
int lt
, nw
, connected
= 1;
if (boolean(value(VERBOSE
)))
printf("\nstarting call...");
if ((dn
= open(acu
, 1)) < 0) {
printf("acu open error...");
signal(SIGALRM
, alarmtr
);
timelim
= 5 * strlen(num
);
alarm(timelim
< 30 ? 30 : timelim
);
if ((child
= fork()) == 0) {
* ignore this stuff for aborts
signal(SIGALRM
, SIG_IGN
);
signal(SIGQUIT
, SIG_IGN
);
nw
= write(dn
, num
, lt
= strlen(num
));
* open line - will return on carrier
if ((FD
= open(DV
, 2)) < 0) {
printf("lost carrier...");
printf("dialup line open failed...");
signal(SIGALRM
, SIG_DFL
);
while ((nw
= wait(<
)) != child
&& nw
!= -1)
* Insurance, for some reason we don't seem to be