On Sun, Mar 20, 2016 at 4:18 PM, hshh <hunreal at gmail.com> wrote: > Compiled 0.11.1 on FreeBSD 10.2. > ocserv can be run as forgeground, but core dump if fork to background. > ocserv[97088]: sec-mod: Error in pselect(): Bad file descriptor > ocserv[97087]: error connecting to sec-mod socket > '/var/run/ocserv-socket.97087': Connection refused > ocserv[97087]: main: main.c:1144: libev fatal error: (libev) kevent > kernel: pid 97087 (ocserv), uid 0: exited on signal 6 (core dumped) Hi, This we reported before but it is unknown to me what's the reason. The same code works in openbsd. Someone with freebsd should debug and check the reason for the invalid fd. regards, Nikos