summaryrefslogtreecommitdiff
path: root/indra/llcommon/doublelinkedlist.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-02-29 17:10:19 -0500
committerNat Goodspeed <nat@lindenlab.com>2012-02-29 17:10:19 -0500
commit3649eda62ad3a04203e6c562e78815a95896bbd4 (patch)
tree7c53bb4c4979c8478369efecd525d001fd940b42 /indra/llcommon/doublelinkedlist.h
parent7fd281ac9971caa1dfffd42e6ff16dd44da20179 (diff)
Guarantee LLProcess::Params::postend listener any ReadPipe data.
Previously one might get process-terminated notification but still have to wait for the child process's final data to arrive on one or more ReadPipes. That required complex consumer timing logic to handle incomplete pending ReadPipe data, e.g. a partial last line with no terminating newline. New code guarantees that by the time LLProcess sends process-terminated notification, all pending pipe data will have been buffered in ReadPipes. Document LLProcess::ReadPipe::getPump() notification event; add "eof" key. Add LLProcess::ReadPipe::getline() and read() convenience methods. Add static LLProcess::getline() and basename() convenience methods, publishing logic already present elsewhere. Use ReadPipe::getline() and read() in unit tests. Add unit test for "eof" event on ReadPipe::getPump(). Add unit test verifying that final data have been buffered by termination notification event.
Diffstat (limited to 'indra/llcommon/doublelinkedlist.h')
0 files changed, 0 insertions, 0 deletions