mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Don't start the event processing thread until after forking.
(reported by Simon on the -dev list, thanks!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2541,7 +2541,6 @@ int main(int argc, char *argv[])
|
||||
ast_alaw_init();
|
||||
callerid_init();
|
||||
ast_builtins_init();
|
||||
ast_event_init();
|
||||
ast_utils_init();
|
||||
tdd_init();
|
||||
/* When Asterisk restarts after it has dropped the root privileges,
|
||||
@@ -2841,6 +2840,8 @@ int main(int argc, char *argv[])
|
||||
if (test_for_thread_safety())
|
||||
ast_verbose("Warning! Asterisk is not thread safe.\n");
|
||||
|
||||
ast_event_init();
|
||||
|
||||
ast_makesocket();
|
||||
sigemptyset(&sigs);
|
||||
sigaddset(&sigs, SIGHUP);
|
||||
|
||||
Reference in New Issue
Block a user