From e268a4341cd701fa30cd3bf674cb38d9e6b3ec79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Desr=C3=A9?= Date: Thu, 15 Mar 2018 16:23:40 -0700 Subject: [PATCH] Update the MULTIPROCESS static when changing default options --- components/config/opts.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/config/opts.rs b/components/config/opts.rs index fbca63417ae..c9b70b5a131 100644 --- a/components/config/opts.rs +++ b/components/config/opts.rs @@ -911,6 +911,9 @@ lazy_static! { } pub fn set_defaults(opts: Opts) { + // Set the static to the new default value. + MULTIPROCESS.store(opts.multiprocess, Ordering::SeqCst); + unsafe { assert!(DEFAULT_OPTIONS.is_null()); assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);