Hi @miconda
If dlg_db_mode = DB_MODE_NONE is done on PROC_MAIN, then on PROC_POSTCHILDINIT is not restored, I don't see how that could happen.
It's restored as the value is reset at the start of `child_init()` as so:
```c static int child_init(int rank) { dlg_db_mode = dlg_db_mode_param; ```
Happy to update the PR if checking against both `PROC_MAIN` and `PROC_POSTCHILDINIT` is preferred.