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