Skip to content

Commit 096ef4c

Browse files
committed
Merging r354029:
------------------------------------------------------------------------ r354029 | mgorny | 2019-02-14 14:52:31 +0100 (Thu, 14 Feb 2019) | 7 lines [lldb] [MainLoop] Report errno for failed kevent() Modify the kevent() error reporting to use errno rather than returning the return value. At least on FreeBSD and NetBSD, kevent() always returns -1 in case of error, and the actual error is returned via errno. Differential Revision: https://reviews.llvm.org/D58229 ------------------------------------------------------------------------ llvm-svn: 354254
1 parent 46fbca3 commit 096ef4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/common/MainLoop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Status MainLoop::RunImpl::Poll() {
109109
out_events, llvm::array_lengthof(out_events), nullptr);
110110

111111
if (num_events < 0)
112-
return Status("kevent() failed with error %d\n", num_events);
112+
return Status(errno, eErrorTypePOSIX);
113113
return Status();
114114
}
115115

0 commit comments

Comments
 (0)