From c73b781e572bb565daaf56f3dda3ea6ba0bdbd67 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Mon, 31 Jul 2017 17:11:35 +0200 Subject: [PATCH] Avoid a warning during unittest related to not supported USR1 signal under win32 --- lib/FusionInventory/Agent/Daemon.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/FusionInventory/Agent/Daemon.pm b/lib/FusionInventory/Agent/Daemon.pm index b35707d1b9..bd4dd71e64 100644 --- a/lib/FusionInventory/Agent/Daemon.pm +++ b/lib/FusionInventory/Agent/Daemon.pm @@ -33,7 +33,8 @@ sub init { # install signal handler to handle reload signal $SIG{HUP} = sub { $self->reinit(); }; - $SIG{USR1} = sub { $self->runNow(); }; + $SIG{USR1} = sub { $self->runNow(); } + unless ($OSNAME eq 'MSWin32'); } sub reinit {