
NM already understands the command line argument --g-fatal-warnings which causes setting of g_log_set_always_fatal(). Also interpret the "fatal-warnings" token in NM_DEBUG environment variable and in main.debug configuration setting. Usage hint: either set $ export NM_DEBUG=RLIMIT_CORE,fatal-warnings or add the following section to NetworkManager.conf [main] debug=RLIMIT_CORE,fatal-warnings https://mail.gnome.org/archives/networkmanager-list/2015-March/msg00093.html