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

#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 ;
}