cvs-setcancelstate
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
For some yet unknown reason, fixes exec crash at boot due to ext2fs.static
including this.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name cvs-setcancelstate.diff

libpthread/pthread/pt-exit.c

index b078db27a5173c9ae3c90d912f4ea12a4a58402b..af75937bc54cb442050563af639afc51774f912b 100644 (file)
@@ -39,14 +39,14 @@ __pthread_exit (void *status)
   /* Run any cancelation handlers.  According to POSIX, the
      cancellation cleanup handlers should be called with cancellation
      disabled.  */
-  __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
+  pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
 
   for (handlers = __pthread_get_cleanup_stack ();
        *handlers;
        *handlers = (*handlers)->__next)
     (*handlers)->__handler ((*handlers)->__arg);
 
-  __pthread_setcancelstate (oldstate, &oldstate);
+  pthread_setcancelstate (oldstate, &oldstate);
 
   /* Decrease the number of threads.  We use an atomic operation to
      make sure that only the last thread calls `exit'.  */