mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
fixed pipe output sometimes being split on non-existing newlines
This commit is contained in:
@@ -706,6 +706,8 @@ void process::on_completed()
|
||||
code_ = 0xffff;
|
||||
}
|
||||
|
||||
read_pipes(false);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
read_pipes(true);
|
||||
|
||||
+9
-6
@@ -137,14 +137,17 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
if (line.empty() && finished)
|
||||
if (line.empty())
|
||||
{
|
||||
line = {
|
||||
reinterpret_cast<const CharT*>(bytes.data() + byte_offset),
|
||||
size - byte_offset
|
||||
};
|
||||
if (finished)
|
||||
{
|
||||
line = {
|
||||
reinterpret_cast<const CharT*>(bytes.data() + byte_offset),
|
||||
size - byte_offset
|
||||
};
|
||||
|
||||
byte_offset = bytes.size();
|
||||
byte_offset = bytes.size();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user