Skip to content

Commit

Permalink
Avoid a warning during unittest related to not supported USR1 signal …
Browse files Browse the repository at this point in the history
…under win32
  • Loading branch information
g-bougard committed Jul 31, 2017
1 parent 5717c72 commit c73b781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/FusionInventory/Agent/Daemon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c73b781

Please sign in to comment.