This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [MainLoop] Report errno for failed kevent()
ClosedPublic

Authored by mgorny on Feb 14 2019, 4:20 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Feb 14 2019, 4:20 AM
labath accepted this revision.Feb 14 2019, 5:45 AM

That seems right. Even the macos manpage for kevent says the error is returned through errno.

This revision is now accepted and ready to land.Feb 14 2019, 5:45 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2019, 5:52 AM