Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
Prefer native ppoll over kqueue
Browse files Browse the repository at this point in the history
ppoll(2) on FreeBSD and OpenBSD isn't broken:
- timeout argument remains unmodified unlike on Linux
- no ppoll(3) means sigmask is updated atomically unlike with glibc
  • Loading branch information
jbeich committed Dec 3, 2015
1 parent a682c99 commit df6073f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ int dup3(int oldfd, int newfd, int flags);

#if defined(__linux__)
# define XPPOLL XPPOLL_LINUX_SYSCALL
#elif defined(HAVE_PPOLL) && !defined(__GLIBC__)
# define XPPOLL XPPOLL_SYSTEM
#elif defined(HAVE_KQUEUE)
# define XPPOLL XPPOLL_KQUEUE
#elif defined(HAVE_PPOLL)
#elif defined(HAVE_PPOLL) && defined(__GLIBC__)
# define XPPOLL XPPOLL_SYSTEM
# define XPPOLL_BROKEN 1
#else
Expand Down

0 comments on commit df6073f

Please sign in to comment.