Call event_init() after detaching.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 21 Jul 2012 12:19:23 +0000 (14:19 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 21 Jul 2012 12:19:23 +0000 (14:19 +0200)
commitcc0c35267f8fac4f82622ff73474ed1e2d3a1e36
treee09624c5f1888bc3202a50f57642385b39e8e46e
parent4e0fc52197546bbf8a0be7af946f4b569e13048c
Call event_init() after detaching.

Otherwise, the call to daemon() could close filedescriptors in use by libevent
itself; for example if it uses kqueue or epoll instead of a select() or poll()
backend.
src/tincd.c