Browse code

dialog: dont reset dlg_db_mode in POSTCHILDINIT for DB_MODE_SHUTDOWN

Shane Mitchell authored on 17/08/2022 03:17:17
Showing 1 changed files
... ...
@@ -824,7 +824,7 @@ static int child_init(int rank)
824 824
 
825 825
 	/* in DB_MODE_SHUTDOWN only PROC_MAIN will do a DB dump at the end, so
826 826
 	 * for the rest of the processes will be the same as DB_MODE_NONE */
827
-	if (dlg_db_mode==DB_MODE_SHUTDOWN && rank!=PROC_MAIN)
827
+	if (dlg_db_mode==DB_MODE_SHUTDOWN && rank!=PROC_POSTCHILDINIT)
828 828
 		dlg_db_mode = DB_MODE_NONE;
829 829
 	/* in DB_MODE_REALTIME and DB_MODE_DELAYED the PROC_MAIN have no DB handle */
830 830
 	if ( (dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED) &&