Skip to content

Commit

Permalink
SIGPOLL is not defined on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhirev authored and Conan-Kudo committed Feb 14, 2020
1 parent 53de9e0 commit 782ffa9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/createrepo_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ cr_set_cleanup_handler(const char *lock_dir,
sigaction(SIGUSR2, &sigact, NULL);

// Handle signals that terminate (from the POSIX.1-2001)
#ifdef SIGPOLL
sigaction(SIGPOLL, &sigact, NULL);
#endif
sigaction(SIGPROF, &sigact, NULL);
sigaction(SIGVTALRM, &sigact, NULL);

Expand Down Expand Up @@ -143,7 +145,9 @@ cr_block_terminating_signals(GError **err)
sigaddset(&intmask, SIGTERM);
sigaddset(&intmask, SIGUSR1);
sigaddset(&intmask, SIGUSR2);
#ifdef SIGPOLL
sigaddset(&intmask, SIGPOLL);
#endif
sigaddset(&intmask, SIGPROF);
sigaddset(&intmask, SIGVTALRM);

Expand Down Expand Up @@ -171,7 +175,9 @@ cr_unblock_terminating_signals(GError **err)
sigaddset(&intmask, SIGTERM);
sigaddset(&intmask, SIGUSR1);
sigaddset(&intmask, SIGUSR2);
#ifdef SIGPOLL
sigaddset(&intmask, SIGPOLL);
#endif
sigaddset(&intmask, SIGPROF);
sigaddset(&intmask, SIGVTALRM);

Expand Down

0 comments on commit 782ffa9

Please sign in to comment.