/* dn11.c 4.4 81/06/16 */
* Routines for dialing up on DN-11
int child
= -1, dn
, 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
));
printf("dn11 write failed...");
* open line - will return on carrier
printf("lost carrier...");
printf("dialup line open failed...");
signal(SIGALRM
, SIG_DFL
);
while ((nw
= wait(<
)) != child
&& nw
!= -1)
signal(SIGQUIT
, SIG_IGN
);
* Insurance, for some reason we don't seem to be