mikew@wyse.wyse.com (Mike Wexler) (11/12/88)
Submitted-by: nathanm@hp-pcd.hp.com (Nathan Meyers) Posting-number: Volume 2, Issue 12 Archive-name: kaleid/patch1 diff -c kaleid.old/kaleid.c kaleid/kaleid.c *** kaleid.old/kaleid.c Fri Nov 11 13:27:36 1988 --- kaleid/kaleid.c Fri Nov 11 13:28:30 1988 *************** *** 42,48 **** #define NCOLORS 16 ! static char *what = "@(#)kaleid.c $Revision: 1.43 $"; Display *display; int screen; --- 42,48 ---- #define NCOLORS 16 ! static char *what = "@(#)kaleid.c $Revision: 1.44 $"; Display *display; int screen; *************** *** 499,511 **** int msec; { struct itimerval value,ovalue; ! struct sigvec vec; long savemask, sigblock(), sigpause(); vec.sv_handler = alarmhandler; vec.sv_mask = 0x0; vec.sv_flags = 0; ! sigvec(SIGALRM, &vec, &vec); /* Set up alarmhandler for SIGALRM */ savemask = sigblock((long)(1L << (SIGALRM - 1))); value.it_interval.tv_sec = 0; --- 499,511 ---- int msec; { struct itimerval value,ovalue; ! struct sigvec vec, ovec; long savemask, sigblock(), sigpause(); vec.sv_handler = alarmhandler; vec.sv_mask = 0x0; vec.sv_flags = 0; ! sigvec(SIGALRM, &vec, &ovec); /* Set up alarmhandler for SIGALRM */ savemask = sigblock((long)(1L << (SIGALRM - 1))); value.it_interval.tv_sec = 0; *************** *** 517,521 **** (void)sigpause(0L); (void)sigsetmask(savemask); ! sigvec(SIGALRM, &vec, NULL); /* Restore previous signal handler */ } --- 517,521 ---- (void)sigpause(0L); (void)sigsetmask(savemask); ! sigvec(SIGALRM, &ovec, NULL); /* Restore previous signal handler */ } diff -c kaleid.old/patchlevel.h kaleid/patchlevel.h *** kaleid.old/patchlevel.h Fri Nov 11 13:27:37 1988 --- kaleid/patchlevel.h Fri Nov 11 13:28:16 1988 *************** *** 1 **** ! #define PATCHLEVEL 0 --- 1 ---- ! #define PATCHLEVEL 1 -- Mike Wexler(wyse!mikew) Phone: (408)433-1000 x1330 Moderator of comp.sources.x