[comp.os.minix] Minor bug in check_sig

bishop@ecsvax.UUCP (Alan Bishop) (09/17/87)

In mm/signal.c, check_sig() returns ESRCH if the process exists but is
ignoring the signals sent to it.  (Try sending SIGTERM to /etc/update
and note the error message from kill(1).  This is where it
originates.)

The fix is simple.
This should be relative to MINIX 1.2 mm/signal.c.

0a1,3
> /* MINIX 1.2 signal.c */
> /* Fixed bug in check_sig() 09/16/87 AGB */
> 
173,174c176,178
< 	if (send_sig == FALSE || rmp->mp_ignore & mask) continue;
< 	count++;
---
> 	if (send_sig == FALSE) continue;
> 	count++;
> 	if (rmp->mp_ignore & mask) continue;

alan