Interrupting find(1)

Ed Hall edhall at randvax.UUCP
Fri Sep 26 17:40:08 AEST 1986


In article <7566 at sun.uucp> guy at sun.uucp (Guy Harris) writes:
>> The fix would be simply to change SIG_IGN to SIG_HOLD in both statements.
>
>But not that way.  SIG_HOLD only appears in "/usr/include/sys/signal.h" as a
>historical holdover; setting the signal action to SIG_HOLD will *not* set
>the "p_sigmask" bit for that signal, so it won't hold it.  The correct fix
>is to put a "sigblock"/"sigsetmask" pair around the "wait".

	--or look at the status returned by wait(), and exit appropriately
	if the child process was killed by SIGINT...  This would even work
	on Vanilla V7 systems (assuming any are still around).

		-Ed Hall
		decvax!randvax!edhall



More information about the Comp.bugs.4bsd.ucb-fixes mailing list