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

Message ID 20260619072238.52120-5-amikan@ilbers.de
State New
Headers show
Series [1/7] wic: Update libs to v5.0.3 | expand

Commit Message

Anton Mikanovich June 19, 2026, 7:21 a.m. UTC
Temporary revert it to sync with OE-core.

This reverts commit 68f299d04b448ad226c2ab0c1474cdfa661ef7fe.
---
 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 998e9368..2ae7a45a 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -257,11 +257,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