Module Name: src
Committed By: pooka
Date: Mon Feb 11 16:02:32 UTC 2013
Modified Files:
src/lib/librumpuser: rumpuser_pth.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/librumpuser/rumpuser_pth.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser_pth.c
diff -u src/lib/librumpuser/rumpuser_pth.c:1.11 src/lib/librumpuser/rumpuser_pth.c:1.12
--- src/lib/librumpuser/rumpuser_pth.c:1.11 Mon Jan 14 21:00:16 2013
+++ src/lib/librumpuser/rumpuser_pth.c Mon Feb 11 16:02:31 2013
@@ -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 @@ rumpuser_thread_create(void *(*f)(void *
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);