[all-commits] [llvm/llvm-project] fdd741: [lldb/linux] Fix a bug in wait status handling
Pavel Labath via All-commits
all-commits at lists.llvm.org
Wed Dec 29 02:25:05 PST 2021
Author: Pavel Labath <pavel at labath.sk>
Date: 2021-12-29 (Wed, 29 Dec 2021)
[lldb/linux] Fix a bug in wait status handling
The MonitorCallback function was assuming that the "exited" argument is
set whenever a thread exits, but the caller was only setting that flag
for the main thread.
This patch deletes the argument altogether, and lets MonitorCallback
compute what it needs itself.
This is almost NFC, since previously we would end up in the
"GetSignalInfo failed for unknown reasons" branch, which was doing the
same thing -- forgetting about the thread.
More information about the All-commits