git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debug
[enigma2.git]
/
lib
/
base
/
console.cpp
diff --git
a/lib/base/console.cpp
b/lib/base/console.cpp
index 75c6162f2b86c52b82e5d1f9c70baf59fc1c2bf6..3f73fba106576e2701ee6d79e306f9ad7ab2f9bb 100644
(file)
--- a/
lib/base/console.cpp
+++ b/
lib/base/console.cpp
@@
-281,6
+281,7
@@
void eConsoleAppContainer::closePipes()
void eConsoleAppContainer::readyRead(int what)
{
void eConsoleAppContainer::readyRead(int what)
{
+ bool hungup = what & eSocketNotifier::Hungup;
if (what & (eSocketNotifier::Priority|eSocketNotifier::Read))
{
// eDebug("what = %d");
if (what & (eSocketNotifier::Priority|eSocketNotifier::Read))
{
// eDebug("what = %d");
@@
-292,9
+293,11
@@
void eConsoleAppContainer::readyRead(int what)
eDebug("%d = %c (%02x)", i, buf[i], buf[i] );*/
buf[rd]=0;
/*emit*/ dataAvail(buf);
eDebug("%d = %c (%02x)", i, buf[i], buf[i] );*/
buf[rd]=0;
/*emit*/ dataAvail(buf);
+ if (!hungup)
+ break;
}
}
}
}
- if (
what & eSocketNotifier::H
ungup)
+ if (
h
ungup)
{
eDebug("child has terminated");
closePipes();
{
eDebug("child has terminated");
closePipes();