Module Name: src Committed By: pooka Date: Fri Mar 21 12:07:10 UTC 2014
Modified Files: src/lib/librumpuser: rumpuser_pth.c Log Message: set threadname for correct pthread_t To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 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.36 src/lib/librumpuser/rumpuser_pth.c:1.37 --- src/lib/librumpuser/rumpuser_pth.c:1.36 Mon Mar 10 22:37:51 2014 +++ src/lib/librumpuser/rumpuser_pth.c Fri Mar 21 12:07:10 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_pth.c,v 1.36 2014/03/10 22:37:51 justin Exp $ */ +/* $NetBSD: rumpuser_pth.c,v 1.37 2014/03/21 12:07:10 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.36 2014/03/10 22:37:51 justin Exp $"); +__RCSID("$NetBSD: rumpuser_pth.c,v 1.37 2014/03/21 12:07:10 pooka Exp $"); #endif /* !lint */ #include <sys/queue.h> @@ -95,7 +95,7 @@ rumpuser_thread_create(void *(*f)(void * #if defined(__NetBSD__) if (rv == 0 && thrname) - pthread_setname_np(ptid, thrname, NULL); + pthread_setname_np(*ptidp, thrname, NULL); #elif defined(__linux__) /* * The pthread_setname_np() call varies from one Linux distro to @@ -103,7 +103,7 @@ rumpuser_thread_create(void *(*f)(void * */ #if 0 if (rv == 0 && thrname) - pthread_setname_np(ptid, thrname); + pthread_setname_np(*ptidp, thrname); #endif #endif