Killing threads
Daniel Franke
dfoxfranke at gmail.com
Tue Sep 27 18:56:45 UTC 2016
On Sep 27, 2016 14:51, "Hal Murray" <hmurray at megapathdsl.net> wrote:
>
> man 7 signal has a long list of what you can do in a signal handler. (all
> other system calls are unsafe)
>
> Is there something similar that applies to killing threads? If so, where
is
> it documented?
>
> For example, if I kill a thread that is in the middle of malloc, are
things
> guaranteed to work correctly or can some global state be left in a broken
> condition. (or a lock locked, or ...)
There are no such guarantees. Killing threads is basically never safe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20160927/b3b5b6e0/attachment.html>
More information about the devel
mailing list