From 17d728dede5ccc5c52c35452cb58e578ed648935 Mon Sep 17 00:00:00 2001 From: Jacob Kroon Date: Fri, 5 Aug 2016 00:04:26 +0200 Subject: terminal: Add sleep in pid-monitor loop Monitoring the process started by gnome-terminal was spinning in a busy-loop. Insert some sleeping so that we don't eat all the cpu. (From OE-Core rev: 314937429d700204f296cfd1c0c5f215a2e5b939) Signed-off-by: Jacob Kroon Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oe/terminal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 6d6a29f983..3901ad3f26 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -76,9 +76,11 @@ class Gnome(XTerminal): finally: os.unlink(pidfile) + import time while True: try: os.kill(pid, 0) + time.sleep(0.1) except OSError: return -- cgit v1.2.3-54-g00ecf