Browse code

core: move exit salutation before killing children

- syslog() is not re-entrant (see linux man page) and can cause troubles
- some that could be related is reported by Alex Hermann, FS#165

Daniel-Constantin Mierla authored on 09/10/2011 10:16:13
Showing 1 changed files
... ...
@@ -699,9 +699,9 @@ void handle_sigs()
699 699
 				DBG("INT received, program terminates\n");
700 700
 			else
701 701
 				DBG("SIGTERM received, program terminates\n");
702
+			LOG(L_NOTICE, "Thank you for flying " NAME "!!!\n");
702 703
 			/* shutdown/kill all the children */
703 704
 			shutdown_children(SIGTERM, 1);
704
-			LOG(L_NOTICE, "Thank you for flying " NAME "\n");
705 705
 			exit(0);
706 706
 			break;
707 707