From: Nathan Froyd <froydnj@codesourcery.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] check for PR_SET_NAME being defined
Date: Wed, 22 Jul 2009 08:49:09 -0700 [thread overview]
Message-ID: <20090722154908.GD32566@codesourcery.com> (raw)
In-Reply-To: <4A672A89.9080502@codemonkey.ws>
Depending on what glibc/kernel headers you are compiling against,
PR_SET_NAME may or may not be defined. Do the right thing if
PR_SET_NAME isn't defined and skip setting the process name.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
---
vl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
[...thought format.signoff would work in all cases, but apparently not...]
diff --git a/vl.c b/vl.c
index ce213c2..61f7711 100644
--- a/vl.c
+++ b/vl.c
@@ -310,7 +310,7 @@ void hw_error(const char *fmt, ...)
static void set_proc_name(const char *s)
{
-#ifdef __linux__
+#if defined(__linux__) && defined(PR_SET_NAME)
char name[16];
if (!s)
return;
--
1.6.2.4
next prev parent reply other threads:[~2009-07-22 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 14:15 [Qemu-devel] [PATCH] check for PR_SET_NAME being defined Nathan Froyd
2009-07-22 15:04 ` Anthony Liguori
2009-07-22 15:49 ` Nathan Froyd [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-03 14:32 Nathan Froyd
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=20090722154908.GD32566@codesourcery.com \
--to=froydnj@codesourcery.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.