Differences From
Artifact [ff639e2a51]:
29 29 proc_active = global(true);
30 30 ipckey = 0x8e037c6;
31 31 }
32 32
33 33 terra m.signum(reqsig: int)
34 34 var sig = S._max() - reqsig
35 35 -- we implement this in contradiction to the recommendations of the manpages
36 - -- because they make no goddamn sense. if SIGRTMIN can vary, using as a basis
36 + -- because they make no goddamn sense. if SIGRTMIN can vary, using it as a basis
37 37 -- for signals is really rather stupid -- there's no guarantee a signal sent
38 38 -- by one process will be interpreted correctly by another, as its SIGRTMIN
39 39 -- might well be different! so we use SIGRTMAX as the base instead, assuming
40 40 -- that it's more likely to remain constant across the whole system.
41 41 if reqsig > S._max() or sig < S._min() then lib.bail('realtime signal error - requested signal number is greater than the available number of realtime signals') end
42 42 return sig
43 43 end