Commit 7bcac797 authored by Arvid Ephraim Picciani's avatar Arvid Ephraim Picciani
Browse files

lldb: exit guest on EOF

parent cac3b4b0
......@@ -88,6 +88,8 @@ private slots:
QByteArray a;
a.resize(1000);
int ret = ::read(fileno(stdin), a.data(), 1000);
if (ret == 0)
::exit(0);
assert(ret <= 1000);
D_STDIO1("activated %i", ret);
a.resize(ret);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment