[COMMITTED PATCH] NPTL: Fixed missed conditionalization of setxid hooey.

Roland McGrath roland@hack.frob.com
Thu Jan 8 21:41:00 GMT 2015


Verified on x86_64-linux-gnu that no generated code changes.


Thanks,
Roland


	* nptl/nptl-init.c (pthread_functions): Conditionalize
	.ptr__nptl_setxid initialization on [SIGSETXID].

--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -140,7 +140,9 @@ static const struct pthread_functions pthread_functions =
     .ptr_nthreads = &__nptl_nthreads,
     .ptr___pthread_unwind = &__pthread_unwind,
     .ptr__nptl_deallocate_tsd = __nptl_deallocate_tsd,
+# ifdef SIGSETXID
     .ptr__nptl_setxid = __nptl_setxid,
+# endif
     /* For now only the stack cache needs to be freed.  */
     .ptr_freeres = nptl_freeres,
     .ptr_set_robust = __nptl_set_robust



More information about the Libc-alpha mailing list