1 --- joe/tty.c Mon Jan 23 05:17:20 1995
2 +++ /tmp/tty.c Mon Aug 31 14:44:31 1998
4 static void dotick() { ticked=1; dostaupd=1; }
5 void tickoff() { alarm(0); }
7 +struct sigaction vnew;
11 + vnew.sa_handler = dotick;
13 -struct sigaction vnew={dotick,0,SA_INTERRUPT};
14 + vnew.sa_flags = SA_INTERRUPT;
17 -struct sigvec vnew={dotick,0,SV_INTERRUPT};
19 + vnew.sa_flags = SV_INTERRUPT;
26 sigaction(SIGALRM,&vnew,(struct sigaction *)0);
28 #define SIGCHLD SIGCLD
32 -struct sigaction inew={death,0,SA_INTERRUPT};
35 -struct sigvec inew={death,0,SV_INTERRUPT};
38 +struct sigaction inew;
40 /* Build a new environment */
46 + inew.sa_handler=death;
48 + inew.sa_flags=SA_INTERRUPT;
49 sigaction(SIGCHLD,&inew,(struct sigaction *)0);
52 + inew.sa_flags=SV_INTERRUPT;
53 sigvec(SIGCHLD,&inew,(struct sigvec *)0);
55 signal(SIGCHLD,death);