Skip to content
Snippets Groups Projects
Commit 260883c1 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Clarify LLProcess debug log message about reading from child pipe.

Previous "read N of M bytes" wording implied that the child had M bytes to
send, but we only read N of them. In reality we have no idea how many bytes
the child is trying to send, only how many the OS is willing to deliver at
this moment. To me, "filled N of M bytes" more clearly implies that M is the
buffer size.
parent d16ce6bf
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,7 @@ class ReadPipeImpl: public LLProcess::ReadPipe
// received. Make sure we commit those later. (Don't commit them
// now, that would invalidate the buffer iterator sequence!)
tocommit += gotten;
LL_DEBUGS("LLProcess") << "read " << gotten << " of " << toread
LL_DEBUGS("LLProcess") << "filled " << gotten << " of " << toread
<< " bytes from " << mDesc << LL_ENDL;
// The parent end of this pipe is nonblocking. If we weren't even
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment