current->exit_code Where does this get initialised?

manty kuma mantykuma at gmail.com
Tue Jul 8 06:53:08 EDT 2014


Hi,
Consider a scenario that a signal handler is getting executed and also
ptrace is attached to the process in parallel.
I have following queries :
1. If a signal is sent to the process from signal handler, Will the signal
be delivered and handled(With ptrace already attached)?

2. what is current->exit_code here
<https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/signal.c?id=refs/tags/v3.16-rc4#n2137>
?
If this is the exit code of the application, is it properly initialized at
this point in time(while the signal is being delivered)? If yes, could
someone help me spotting it in source?

Looking forward for responses. Thank you

Best Regards,
Manty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140708/c0cf5468/attachment.html 


More information about the Kernelnewbies mailing list