[Glibc-bsd-commits] r4551 - trunk/glibc-ports/kfreebsd/linuxthreads

Petr Salinger ps-guest at alioth.debian.org
Mon Jul 8 12:42:25 UTC 2013


Author: ps-guest
Date: 2013-06-21 09:53:28 +0000 (Fri, 21 Jun 2013)
New Revision: 4551

Modified:
   trunk/glibc-ports/kfreebsd/linuxthreads/timer_create.c
Log:
sigev_value should contain user level of timer ID


Modified: trunk/glibc-ports/kfreebsd/linuxthreads/timer_create.c
===================================================================
--- trunk/glibc-ports/kfreebsd/linuxthreads/timer_create.c	2013-06-21 09:28:53 UTC (rev 4550)
+++ trunk/glibc-ports/kfreebsd/linuxthreads/timer_create.c	2013-06-21 09:53:28 UTC (rev 4551)
@@ -56,7 +56,7 @@
 		 the kernel to determine it.  */
 	      local_evp.sigev_notify = SIGEV_SIGNAL;
 	      local_evp.sigev_signo = SIGALRM;
-	      local_evp.sigev_value.sival_ptr = newp;
+	      local_evp.sigev_value.sival_int = __kfreebsd_timer_ptr2id (newp);
 
 	      evp = &local_evp;
 	    }
@@ -84,9 +84,6 @@
 
 	      return retval;
 	    }
-
-	  __kfreebsd_timer_free (newp);
-
 	}
       else
 	{




More information about the Glibc-bsd-commits mailing list