summaryrefslogtreecommitdiff
path: root/src/sysdeps/trysignalfd.c
blob: 1f06933a167c31baedc148d5df37d209c2464e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <sys/types.h>
#include <signal.h>
#include <sys/signalfd.h>

int main (void)
{
  sigset_t foo ;
  sigemptyset(&foo) ;
  if (signalfd(-1, &foo, SFD_NONBLOCK) < 0) return 1 ;
  return 0 ;
}