summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorSlava Gurevich <sgurevich@gmail.com>2022-07-25 18:23:19 -0700
committerSlava Gurevich <sgurevich@gmail.com>2022-07-25 18:23:19 -0700
commit9877159dd65ae6d2c4afc4c459d2eefe2473e616 (patch)
tree86652b628e21af293e46eee07fac46c7cc1a7649 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent78015047b22dd64f7c647ab7ce04d42e761e7b8f (diff)
Revert "[LLDB][NFC][Reliability] Fix uninitialized variables from Coverity scan. Part 2"
This reverts commit b9aedd94e6796e4b4866ab4c091b736b3db58cb7.
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index f7f52deb173f..90118f9386da 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -234,7 +234,7 @@ NativeProcessLinux::Factory::Launch(ProcessLaunchInfo &launch_info,
}
// Wait for the child process to trap on its call to execve.
- int wstatus = 0;
+ int wstatus;
::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
assert(wpid == pid);
(void)wpid;