si_code is SI_TKILL in such case but: ./sysdeps/unix/sysv/linux/bits/siginfo.h: SI_USER, /* Sent by kill, sigsend, raise. */ kernel-2.6.33.5-124.fc13.x86_64 glibc-2.12-2.x86_64 and HEAD (5be9d05d3136460cf6cedd3823fd236aeebe83ef) Just noticed, unaware of any problem due to it.
Created attachment 4876 [details] Reproducer.
That is no problem except in the documentation. No standard specifies anything about the si_code used for raise. I changed the documentation.
Around glibc 2.3.2/2.3.3, the implementation of raise() changed, resulting in a silent ABI change to the si_code behavior. Once upon a time, the code comment was true.