Index: lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp +++ lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp @@ -700,7 +700,7 @@ bytes_read = io.piod_len; io.piod_len = size - bytes_read; - } while (bytes_read < size); + } while (bytes_read < size && bytes_read != 0); return Status(); }