From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 3/4] Revert "Revert "devshell: Use different termination test to avoid warnings""
Date: Wed, 8 May 2024 09:42:22 +0300 [thread overview]
Message-ID: <20240508064223.534237-4-amikan@ilbers.de> (raw)
In-Reply-To: <20240508064223.534237-1-amikan@ilbers.de>
Reapply 68f299d on top of updated terminal.py code.
This reverts commit 147c4b8b4ee0f287c295d1415168d0edabc89c66.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/lib/oe/terminal.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 2ae7a45a..998e9368 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -257,9 +257,11 @@ 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.kill(pid, 0)
+ os.stat(procpid)
time.sleep(0.1)
except OSError:
return
--
2.34.1
next prev parent 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 ` [PATCH 1/4] Revert "devshell: Use different termination test to avoid warnings" Anton Mikanovich
2024-05-08 6:42 ` [PATCH 2/4] meta: 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 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-4-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