🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Steven M. Schultz Sat, 30 Dec 1989 04:15
Missing long in syslog.c
#262
Author: Steven M. Schultz
Date: Sat, 30 Dec 1989 04:15
33 lines
1281 bytes
Subject: Missing long indicator in syslog.c
Index:	lib/libc/gen/syslog.c 2.10BSD

Description:
	Signal masks are long, not int.  There is a missing 'L' in a
	sigblock() call in syslog.c

Repeat-By:
	Examination of the source.

Fix:
	Apply the following patch and reinstall syslog() in libc.a and
	libc_p.a

*** syslog.c.old	Sun Jul  3 21:45:31 1988
--- syslog.c	Fri Dec 29 20:02:38 1989
***************
*** 144,150 ****
  		int fd;
  
  		signal(SIGALRM, SIG_DFL);
! 		sigsetmask(sigblock(0) & ~sigmask(SIGALRM));
  		alarm(5);
  		fd = open(ctty, O_WRONLY);
  		alarm(0);
--- 144,150 ----
  		int fd;
  
  		signal(SIGALRM, SIG_DFL);
! 		sigsetmask(sigblock(0L) & ~sigmask(SIGALRM));
  		alarm(5);
  		fd = open(ctty, O_WRONLY);
  		alarm(0);
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads