[1/4] Revert "devshell: Use different termination test to avoid warnings"

Message ID 20240508064223.534237-2-amikan@ilbers.de
State Accepted, archived
Headers show
Series Update OE-core libs to 5.0 LTS | expand

Commit Message

Anton Mikanovich May 8, 2024, 6:42 a.m. UTC
Cleanup OE code for the next upstream alignment update.

This reverts commit 68f299d04b448ad226c2ab0c1474cdfa661ef7fe.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/lib/oe/terminal.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 856d1d4e..8a3d84d3 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -253,11 +253,9 @@  def spawn(name, sh_cmd, title=None, env=None, d=None):
     finally:
         os.unlink(pidfile)
 
-    # Test for /proc entry so that target pid can also be privileged
-    procpid = "/proc/%d" % pid
     while True:
         try:
-            os.stat(procpid)
+            os.kill(pid, 0)
             time.sleep(0.1)
         except OSError:
            return