baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

libevent with kqueue backend fails to start in daemon mode #452

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install prosody 0.9.6 on OpenBSD
2. enable libevent via use_libevent=yes in prosody.cfg.lua
3. start in daemon mode with daemonize=true + posix module loaded

What is the expected output? What do you see instead?

prosody starts, then immediately exits.

general info    Hello and welcome to Prosody version 0.9.6
general info    Prosody is using the kqueue backend for connection handling
portmanager     info    Activated service 's2s' on [::]:5269, [*]:5269
portmanager     info    Activated service 'c2s' on [::]:5222, [*]:5222
portmanager     info    Activated service 'legacy_ssl' on no ports
mod_posix       info    Prosody is about to detach from the console, disabling 
further console output
mod_posix       info    Successfully daemonized to PID 4064
general info    Shutting down...
general info    Shutdown status: Cleaning up
general info    Shutdown complete

Without libevent enabled, the select backend is used, and after the 'mod_posix 
info Successfully daemonized' log line, prosody is still running and accepting 
connections.

Enabling more debug info in the log {} subsection doesnt provide more 
information..

Apparently, it doesnt start either if daemonize = yes is commented out.

Original issue reported on code.google.com by landry.b...@gmail.com on 26 Nov 2014 at 8:26