tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Unused SI_LWP si_code definition ?
Hi,
While looking into existing si_code values, i discovered SI_LWP
definition (src/sys/sys/siginfo.h). According to the corresponding
comment it should be set by _lwp_kill(2), but it SI_USER is set
instead ... So this value is currently unused.
For compat linux NPTL emulation, i do need this functionality, where 2
syscalls tkill and tgkill set up si_code to SI_TKILL. This value is
needed by a handler in libpthread to switch a bit, allowing threads to
be properly cancelled.
Is it ok to use it for compat linux ? If yes, don't we need to update
_lwp_kill(2) accordingly ?
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.
Home |
Main Index |
Thread Index |
Old Index