public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 1/4] Revert "devshell: Use different termination test to avoid warnings"
Date: Wed,  8 May 2024 09:42:20 +0300	[thread overview]
Message-ID: <20240508064223.534237-2-amikan@ilbers.de> (raw)
In-Reply-To: <20240508064223.534237-1-amikan@ilbers.de>

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(-)

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
-- 
2.34.1


  reply	other threads:[~2024-05-08  6:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08  6:42 [PATCH 0/4] Update OE-core libs to 5.0 LTS Anton Mikanovich
2024-05-08  6:42 ` Anton Mikanovich [this message]
2024-05-08  6:42 ` [PATCH 2/4] meta: " Anton Mikanovich
2024-05-08  6:42 ` [PATCH 3/4] Revert "Revert "devshell: Use different termination test to avoid warnings"" Anton Mikanovich
2024-05-08  6:42 ` [PATCH 4/4] patch: Set dummy credentials for git notes Anton Mikanovich
2024-05-17 11:22 ` [PATCH 0/4] Update OE-core libs to 5.0 LTS Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240508064223.534237-2-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox