diff options
| author | Michal Gorny <mgorny@gentoo.org> | 2019-03-21 19:35:55 +0000 |
|---|---|---|
| committer | Michal Gorny <mgorny@gentoo.org> | 2019-03-21 19:35:55 +0000 |
| commit | 2819136f0a3d75f3b6fefe5f962efdbf66e99c12 (patch) | |
| tree | daa3971def7f0d9e8d59169ca53d594b2940e62b /lldb/source/Plugins/Process/NetBSD | |
| parent | c56872589f1593eb0e6ccd9ee2c3e1be0c947e08 (diff) | |
| download | bcm5719-llvm-2819136f0a3d75f3b6fefe5f962efdbf66e99c12.tar.gz bcm5719-llvm-2819136f0a3d75f3b6fefe5f962efdbf66e99c12.zip | |
[lldb] Add missing EINTR handling
Differential Revision: https://reviews.llvm.org/D59606
llvm-svn: 356703
Diffstat (limited to 'lldb/source/Plugins/Process/NetBSD')
| -rw-r--r-- | lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp index b0ae54841b1..5ccd5a35f75 100644 --- a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp +++ b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp @@ -665,7 +665,8 @@ Status NativeProcessNetBSD::Attach() { int wstatus; // Need to use WALLSIG otherwise we receive an error with errno=ECHLD At this // point we should have a thread stopped if waitpid succeeds. - if ((wstatus = waitpid(m_pid, NULL, WALLSIG)) < 0) + if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, + m_pid, NULL, WALLSIG)) < 0) return Status(errno, eErrorTypePOSIX); /* Initialize threads */ |

