]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: Fix tst-cancel30 on sparc64
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Apr 2023 17:18:14 +0000 (14:18 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Apr 2023 20:41:59 +0000 (17:41 -0300)
As indicated by sparc kernel-features.h, even though sparc64 defines
__NR_pause,  it is not supported (ENOSYS).  Always use ppoll or the
64 bit time_t variant instead.

sysdeps/pthread/tst-cancel30.c

index 6eb4eb5b42bb8922c5a1322248ec45e998bbeec4..ff803386be43ded13ab3c65c47e7cca6649c6029 100644 (file)
@@ -46,9 +46,7 @@ tf (void *arg)
 
   /* Wait indefinitely for cancellation, which only works if asynchronous
      cancellation is enabled.  */
-#ifdef SYS_pause
-  syscall (SYS_pause);
-#elif defined SYS_ppoll || defined SYS_ppoll_time64
+#if defined SYS_ppoll || defined SYS_ppoll_time64
 # ifndef SYS_ppoll_time64
 #  define SYS_ppoll_time64 SYS_ppoll
 # endif