Fix typo in last commit.
authorUlrich Drepper <drepper@redhat.com>
Fri, 9 Apr 2010 19:29:18 +0000 (12:29 -0700)
committerUlrich Drepper <drepper@redhat.com>
Fri, 9 Apr 2010 19:29:18 +0000 (12:29 -0700)
nptl/sysdeps/unix/sysv/linux/pthread_getname.c

index c6d78df..593219b 100644 (file)
@@ -43,7 +43,7 @@ pthread_getname_np (th, buf, len)
     return ERANGE;
 
   if (th == THREAD_SELF)
-    return prctl (PR_SET_NAME, buf) ? errno : 0;
+    return prctl (PR_GET_NAME, buf) ? errno : 0;
 
 #define FMT "/proc/self/task/%u/comm"
   char fname[sizeof (FMT) + 8];