13.14 issig (3991)

3997:

If “p_sig” is non-zero, then ...

3998:

If the “tracing” flag is on, call “stop” (this topic will be resumed later);

4000:

Return a zero value if “p_sig” is zero. (This apparently redundant test is necessary because “stop” may reset “p_sig” as a side effect.);

4003. If the value in the corresponding element of “u.u_signal” is even (may be zero) return a non-zero value;

4006:

Otherwise return a zero value.

The comment regarding the frequency of calls on “issig” which occurs on lines 3983 to 3985 needs some clarification. At least one call on “issig” is a part of every execution of “trap” but only of one interrupt routine (“clock”, which calls “issig” only once per second). In cases where “pri” is positive, “sleep” (2073, 2085) calls “issig” before and after calling “swtch”.