Skip to content
Snippets Groups Projects
Commit 7bcac797 authored by Arvid Ephraim Picciani's avatar Arvid Ephraim Picciani
Browse files

lldb: exit guest on EOF

parent cac3b4b0
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,8 @@ private slots: ...@@ -88,6 +88,8 @@ private slots:
QByteArray a; QByteArray a;
a.resize(1000); a.resize(1000);
int ret = ::read(fileno(stdin), a.data(), 1000); int ret = ::read(fileno(stdin), a.data(), 1000);
if (ret == 0)
::exit(0);
assert(ret <= 1000); assert(ret <= 1000);
D_STDIO1("activated %i", ret); D_STDIO1("activated %i", ret);
a.resize(ret); a.resize(ret);
......
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