Problem reported by Leonard Lausen (Bug#37331).
* src/dbusbind.c: Include pdumper.h.
(syms_of_dbusbind_for_pdumper):
New function, to reset the registered buses.
(syms_of_dbusbind): Use it, fixing a TODO.
#include "lisp.h"
#include "termhooks.h"
#include "keyboard.h"
+#include "pdumper.h"
#include "process.h"
#ifndef DBUS_NUM_MESSAGE_TYPES
xputenv ("DBUS_FATAL_WARNINGS=0");
}
+static void
+syms_of_dbusbind_for_pdumper (void)
+{
+ xd_registered_buses = Qnil;
+}
+
void
syms_of_dbusbind (void)
{
#endif
/* Initialize internal objects. */
- xd_registered_buses = Qnil;
+ pdumper_do_now_and_after_load (syms_of_dbusbind_for_pdumper);
staticpro (&xd_registered_buses);
- // TODO: reset buses on dump load
-
Fprovide (intern_c_string ("dbusbind"), Qnil);
-
}
#endif /* HAVE_DBUS */