Skip to content

Commit

Permalink
Current SmartOS also has epoll(), so we need to prefer ports ...
Browse files Browse the repository at this point in the history
... in order to actually use it by default
  • Loading branch information
nigoroll committed May 31, 2016
1 parent 11b91d1 commit 45ca71b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/varnishd/mgt/mgt_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ usage(void)
#if defined(HAVE_KQUEUE)
fprintf(stderr, FMT, "", " -W kqueue");
#endif
#if defined(HAVE_EPOLL_CTL)
fprintf(stderr, FMT, "", " -W epoll");
#endif
#if defined(HAVE_PORT_CREATE)
fprintf(stderr, FMT, "", " -W ports");
#endif
#if defined(HAVE_EPOLL_CTL)
fprintf(stderr, FMT, "", " -W epoll");
#endif
fprintf(stderr, FMT, "", " -W poll");

Expand Down
6 changes: 3 additions & 3 deletions bin/varnishd/waiter/mgt_waiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ static const struct choice waiter_choice[] = {
#if defined(HAVE_KQUEUE)
{ "kqueue", &waiter_kqueue },
#endif
#if defined(HAVE_EPOLL_CTL)
{ "epoll", &waiter_epoll },
#endif
#if defined(HAVE_PORT_CREATE)
{ "ports", &waiter_ports },
#endif
#if defined(HAVE_EPOLL_CTL)
{ "epoll", &waiter_epoll },
#endif
{ "poll", &waiter_poll },
{ NULL, NULL}
Expand Down

1 comment on commit 45ca71b

@hermunn
Copy link
Member

@hermunn hermunn commented on 45ca71b Jun 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported to 4.1: d5a3959

Please sign in to comment.