public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Re: Bug: Blocking of RT signals in a pause()
@ 2003-02-23 22:06 Keith Owens
  2003-02-24 23:15 ` Keith Owens
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2003-02-23 22:06 UTC (permalink / raw)
  To: linux-ia64

On Fri, 21 Feb 2003 17:38:24 +0100, 
Eric Piel <Eric.Piel@Bull.Net> wrote:
>Basically the problem is that while my program is in a pause() I can not
>receive any signal > 32 (RT signals) even if I've just unblocked them.
>In addition if I unblock signal 32 then all the RT signals are
>unblocked. This strange behaviour is not reproductible during a sleep().
>No idea came to my mind to test other system calls so I can't say more.

This is a glibc bug, see http://lists.linuxia64.org/archives/linux-ia64/2003-January/004578.html.
I have sent this bug twice to the libc-alpha list, with no response.
Third bug report is on its way to libc-alpha.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Linux-ia64] Re: Bug: Blocking of RT signals in a pause()
  2003-02-23 22:06 [Linux-ia64] Re: Bug: Blocking of RT signals in a pause() Keith Owens
@ 2003-02-24 23:15 ` Keith Owens
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2003-02-24 23:15 UTC (permalink / raw)
  To: linux-ia64

On Fri, 21 Feb 2003 17:38:24 +0100, 
Eric Piel <Eric.Piel@Bull.Net> wrote:
>Basically the problem is that while my program is in a pause() I can not
>receive any signal > 32 (RT signals) even if I've just unblocked them.
>In addition if I unblock signal 32 then all the RT signals are
>unblocked. This strange behaviour is not reproductible during a sleep().
>No idea came to my mind to test other system calls so I can't say more.

It looks like this has been fixed in glibc CVS 2003-02-23.  The old
pause file (sysdeps/unix/common/pause.c) has been deleted and
sysdeps/posix/pause.c has been added, containing:

#include <signal.h>
#include <unistd.h>

/* Suspend the process until a signal arrives.
   This always returns -1 and sets errno to EINTR.  */
int
__libc_pause (void)
{
  sigset_t set;

  __sigemptyset (&set);
  __sigprocmask (SIG_BLOCK, NULL, &set);

  /* pause is a cancellation point, but so is sigsuspend.
     So no need for anything special here.  */

  return __sigsuspend (&set);
}
weak_alias (__libc_pause, pause)

Either upgrade ia64 to glibc from CVS or modify your existing glibc to
use the above code for pause.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-24 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-23 22:06 [Linux-ia64] Re: Bug: Blocking of RT signals in a pause() Keith Owens
2003-02-24 23:15 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox