mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-09 00:42:51 -04:00
Arm inotify only in server mode
Async-push is a server side feature and inotify_fd is initialized in server mode. Trac: #786 Signed-off-by: Lev Stipakov <lstipakov@gmail.com> Acked-by: David Sommerseth <davids@openvpn.net> Message-Id: <1481067951-28917-1-git-send-email-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13415.html Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
parent
e62eccf025
commit
7084a3993f
1 changed files with 2 additions and 1 deletions
|
|
@ -1578,7 +1578,8 @@ io_wait_dowork (struct context *c, const unsigned int flags)
|
|||
|
||||
#ifdef ENABLE_ASYNC_PUSH
|
||||
/* arm inotify watcher */
|
||||
event_ctl (c->c2.event_set, c->c2.inotify_fd, EVENT_READ, (void*)&file_shift);
|
||||
if (c->options.mode == MODE_SERVER)
|
||||
event_ctl (c->c2.event_set, c->c2.inotify_fd, EVENT_READ, (void*)&file_shift);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue