Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser As reported by several people, the signature...
details: https://anonhg.NetBSD.org/src/rev/6fe721e4178c
branches: trunk
changeset: 784852:6fe721e4178c
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Feb 11 16:02:31 2013 +0000
description:
As reported by several people, the signature of pthread_setname_np() varies
from one Linux distro to another (didn't suspect it to be *that* _np).
Comment out the call on Linux pending autoconf support.
diffstat:
lib/librumpuser/rumpuser_pth.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r a22462ccef79 -r 6fe721e4178c lib/librumpuser/rumpuser_pth.c
--- a/lib/librumpuser/rumpuser_pth.c Mon Feb 11 12:43:03 2013 +0000
+++ b/lib/librumpuser/rumpuser_pth.c Mon Feb 11 16:02:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_pth.c,v 1.11 2013/01/14 21:00:16 pooka Exp $ */
+/* $NetBSD: rumpuser_pth.c,v 1.12 2013/02/11 16:02:31 pooka Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth.c,v 1.11 2013/01/14 21:00:16 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_pth.c,v 1.12 2013/02/11 16:02:31 pooka Exp $");
#endif /* !lint */
#include <assert.h>
@@ -242,9 +242,15 @@
if (rv == 0 && thrname)
pthread_setname_np(ptid, thrname, NULL);
#elif defined(__linux__)
+ /*
+ * The pthread_setname_np() call varies from one Linux distro to
+ * another. Comment out the call pending autoconf support.
+ */
+#if 0
if (rv == 0 && thrname)
pthread_setname_np(ptid, thrname);
#endif
+#endif
if (joinable) {
assert(ptcookie);
Home |
Main Index |
Thread Index |
Old Index