The negative sigcodes are reserved for SI_* values, we need to keep them
negative when extending to exc_subcode's long type.
This fixes the comparison in HURD_PREEMPT_SIGNAL_P for the signal preemptor
for setitimer, thus fixing considering it.it_interval.
Reported-by: David Yang <mmyangfl@gmail.com>
if (err = signal_allowed (signo, refport))
return err;
- d.code = d.exc_subcode = sigcode;
+ d.code = d.exc_subcode = (int) sigcode;
d.exc = 0;
/* Post the signal to a global receiver thread (or mark it pending in