bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sigaction test failure on FreeBSD 9.1 when pthread is used


From: Paul Eggert
Subject: Re: sigaction test failure on FreeBSD 9.1 when pthread is used
Date: Sun, 03 Feb 2013 22:23:51 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 01/29/2013 01:31 AM, Daiki Ueno wrote:
> Yes, but from the gettext Hydra build log[1], FreeBSD 8.x does not seem
> to have that behavior.  Perhaps it might be a bug in the latest FreeBSD
> kernel.
> 
> Footnotes: 
> [1]  http://hydra.nixos.org/build/3910833/nixlog/1

In that case perhaps we should leave the Gnulib test alone,
and report a bug to the FreeBSD folks.  Does the following
simple test case elicit the bug for you?  It should exit with status 0
on any host conforming to POSIX.

#include <signal.h>
#include <stdio.h>

int
main (void)
{
  struct sigaction sa;
  if (sigaction (SIGABRT, 0, &sa) != 0)
    return perror ("sigaction"), 1;
  if (sa.sa_flags & SA_SIGINFO)
    {
      fprintf (stderr, "sigaction wrongly reports SA_SIGINFO\n");
      return 1;
    }
  return 0;
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]