ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd_epoll.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/s_bsd_epoll.c (file contents):
Revision 8531 by michael, Sun Apr 29 14:29:13 2018 UTC vs.
Revision 8532 by michael, Sun Apr 29 15:03:39 2018 UTC

# Line 45 | Line 45 | static int epoll_fd;
45   void
46   comm_select_init(void)
47   {
48 <  if ((epoll_fd = epoll_create(hard_fdlimit)) < 0)
48 >  if ((epoll_fd = epoll_create1(EPOLL_CLOEXEC)) < 0)
49    {
50      ilog(LOG_TYPE_IRCD, "comm_select_init: couldn't open epoll fd: %s",
51           strerror(errno));

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)