Implementation of sigsuspend_not_cancel for GNU/Hurd

Samuel Thibault samuel.thibault@ens-lyon.org
Sat Jul 21 21:02:00 GMT 2007


Aurélien Jarno reported:

``sigsuspend_not_cancel is not defined for Hurd in
sysdeps/mach/hurd/sigsuspend.c. This function is called from
sysdeps/posix/pause.c.''

The current __sigsuspend() doesn't handle cancellation anyway, hence the
attached patch should be applied.

Samuel
-------------- next part --------------
2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
        to __sigsuspend.

--- libc/sysdeps/mach/hurd/sigsuspend.c.orig 2007-02-12 02:54:19.000000000 +0100
+++ libc/sysdeps/mach/hurd/sigsuspend.c      2007-02-12 02:54:35.000000000 +0100
@@ -80,4 +80,5 @@
   return -1;
 }
 libc_hidden_def (__sigsuspend)
+strong_alias (__sigsuspend, sigsuspend_not_cancel)
 weak_alias (__sigsuspend, sigsuspend)


More information about the Libc-alpha mailing list