summaryrefslogtreecommitdiffstats
path: root/gui/terminal.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-12-23 00:55:57 +0100
committerDees Troy <dees_troy@teamw.in>2017-11-28 00:20:51 +0100
commit6e8c27a52b67e3474936113f897f309a0091910a (patch)
treee0a0635a0812fda8801fa6874c6dfc47bc277cae /gui/terminal.cpp
parentADB Backup: Fix gzip backup and restore (diff)
downloadandroid_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar.gz
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar.bz2
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar.lz
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar.xz
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.tar.zst
android_bootable_recovery-6e8c27a52b67e3474936113f897f309a0091910a.zip
Diffstat (limited to 'gui/terminal.cpp')
-rw-r--r--gui/terminal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/terminal.cpp b/gui/terminal.cpp
index 1744788da..65ad2c026 100644
--- a/gui/terminal.cpp
+++ b/gui/terminal.cpp
@@ -34,6 +34,7 @@ extern "C" {
#include "../twcommon.h"
}
#include "../minuitwrp/minui.h"
+#include "gui.hpp"
#include "rapidxml.hpp"
#include "objects.hpp"
@@ -83,6 +84,7 @@ public:
// and write it to the terminal
// this currently works through gui.cpp calling terminal_pty_read below
g_pty_fd = fdMaster;
+ set_select_fd();
return true;
}
else {
@@ -174,6 +176,7 @@ public:
}
close(fdMaster);
g_pty_fd = fdMaster = -1;
+ set_select_fd();
int status;
waitpid(pid, &status, WNOHANG); // avoid zombies but don't hang if the child is still alive and we got here due to some error
pid = 0;