From 1fd473fd504fe7a5411fdde3e71e2c742b69b9bd Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 10 Aug 2014 13:18:59 +0100 Subject: [PATCH] preload all worker modules into shared memory --- Netdisco/bin/netdisco-daemon-fg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Netdisco/bin/netdisco-daemon-fg b/Netdisco/bin/netdisco-daemon-fg index a3a8f618..238e39d1 100755 --- a/Netdisco/bin/netdisco-daemon-fg +++ b/Netdisco/bin/netdisco-daemon-fg @@ -28,6 +28,10 @@ use App::Netdisco::Util::Daemon; use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors use Role::Tiny::With; +# preload all worker modules into shared memory +use Module::Find (); +Module::Find::useall 'App::Netdisco::Daemon::Worker'; + use MCE::Signal '-setpgrp'; use MCE::Flow Sereal => 1; use MCE::Queue;