Skip to content

Commit f585395

Browse files
committed
Fix DoMonitor for Mac/BSD
1 parent 2feec88 commit f585395

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/crl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ static int SwapLists(WOLFSSL_CRL* crl)
10361036
#ifdef __MACH__
10371037
#define XEVENT_MODE O_EVTONLY
10381038
#elif defined(__FreeBSD__)
1039-
#define XEVENT_MODE EVFILT_VNODE
1039+
#define XEVENT_MODE O_RDONLY
10401040
#endif
10411041

10421042

@@ -1115,11 +1115,11 @@ static THREAD_RETURN WOLFSSL_THREAD DoMonitor(void* arg)
11151115
}
11161116

11171117
if (fPEM != -1)
1118-
EV_SET(&change, fPEM, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_ONESHOT,
1118+
EV_SET(&change, fPEM, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR,
11191119
NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_ATTRIB, 0, 0);
11201120

11211121
if (fDER != -1)
1122-
EV_SET(&change, fDER, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_ONESHOT,
1122+
EV_SET(&change, fDER, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR,
11231123
NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_ATTRIB, 0, 0);
11241124

11251125
/* signal to calling thread we're setup */

0 commit comments

Comments
 (0)