[comp.bugs.2bsd] sigblock in window needs a long

sms@wlv.imsd.contel.com (Steven M. Schultz) (01/12/90)

Subject: sigblock in window needs a long
Index:	ucb/window/wwrint.c 2.10BSD

Description:
	The sigblock(2) syscall takes a long argument rather than
	a int.

Repeat-By:
	Examination of the code.

Fix:
	Apply the following patch to wwrint.c and remake 'window'.

*** wwrint.c.old	Mon Feb 16 22:10:56 1987
--- wwrint.c	Fri Dec 29 21:55:11 1989
***************
*** 42,48 ****
  		wwnreade++;
  	if (wwinterrupt() && wwsetjmp) {
  		wwsetjmp = 0;
! 		(void) sigsetmask(sigblock(0) & ~sigmask(SIGIO));
  		longjmp(wwjmpbuf, 1);
  	}
  }
--- 42,48 ----
  		wwnreade++;
  	if (wwinterrupt() && wwsetjmp) {
  		wwsetjmp = 0;
! 		(void) sigsetmask(sigblock(0L) & ~sigmask(SIGIO));
  		longjmp(wwjmpbuf, 1);
  	}
  }