Index: asterisk.c =================================================================== --- asterisk.c (revision 43975) +++ asterisk.c (working copy) @@ -743,6 +743,8 @@ static void hup_handler(int num) { + /* prevent deadlocking children trying to reload the config */ + if (ast_mainpid != getpid()) return; if (option_verbose > 1) printf("Received HUP signal -- Reloading configs\n"); if (restartnow)