[Lldb-commits] [PATCH] D33831: Add temp_failure_retry helper function

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 2 07:35:18 PDT 2017


labath created this revision.
Herald added subscribers: mgorny, emaste.

It is intended to wrap functions which can fail with EINTR (which we
have a surprising number of). It is inspired by the TEMP_FAILURE_RETRY
macro in glibc, but I've c++-ified it and made it more generic (by
specifying an explicit fail value), so it can also be used for functions
like fopen(3).


https://reviews.llvm.org/D33831

Files:
  include/lldb/Host/Host.h
  include/lldb/Utility/Status.h
  source/Host/common/File.cpp
  source/Host/macosx/Host.mm
  source/Host/posix/ConnectionFileDescriptorPosix.cpp
  source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
  source/Plugins/Process/Linux/NativeProcessLinux.cpp
  source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
  unittests/Host/CMakeLists.txt
  unittests/Host/HostTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33831.101208.patch
Type: text/x-patch
Size: 13159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170602/fcd054ae/attachment.bin>


More information about the lldb-commits mailing list