commit | ff05357a839dd1f65caf736ded2476eaa135fe06 | [log] [tgz] |
---|---|---|
author | Benjamin Berg <bberg@redhat.com> | Thu Apr 07 12:43:08 2022 +0200 |
committer | Tormod Volden <debian.tormod@gmail.com> | Sat Apr 09 10:00:13 2022 +0200 |
tree | 3c1d87c3b8b659a7a7fe5fa83bf9c45dd5a49a07 | |
parent | 32f3c6db957da09f78de18439c61ab1b8fe6358f [diff] |
darwin: Fix crash in log handler when stopping event thread The darwin event thread (in contrast to other OS implementations) tries to log to the context that created it. However, this context is only guaranteed to be valid until the thread has started. It may be that another context is the last one to be destroyed, causing the event thread to log using an already destroyed context. Fix this by only passing on ctx where it is acceptable. Fixes #1108