On Friday, 28 April 2023 01:31:39 PDT Bernhard Lindner wrote:
> Please note that lines are not interleaved. Still a line feed is added after
> each write() call when executing the code snippet from a sub thread.
> 
> The effect is completely reproducible when starting the debug build from Qt
> Creator under gdb supervision. However when manually stepping through the
> code or when running the debug build without debugger the output looks just
> fine.

I can reproduce this with the attached test. The problem appears to be that 
when Qt Creator reads from the pipe, it assumes that whatever it read is a 
full line after a time out, when it isn't. It doesn't update the previous line 
when more characters are received.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
#include <unistd.h>
int main()
{
    write(2, "h", 1);
    sleep(1);
    write(2, "h", 1);
    sleep(1);
    write(2, "h", 1);
    sleep(1);
    write(2, "h", 1);
    sleep(1);
}

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to