Skip to content

Commit

Permalink
pass explicit option to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Feb 28, 2013
1 parent 69ca63b commit 233ce63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent.pm
Expand Up @@ -98,7 +98,7 @@ sub init {
}

# compute list of allowed tasks
my %available = $self->getAvailableTasks(disabledTasks => $config->{'no-task'});
my %available = $self->getAvailableTasks(fork => 1);
my @tasks = keys %available;

$logger->debug("Available tasks:");
Expand Down Expand Up @@ -304,7 +304,7 @@ sub getAvailableTasks {
next if $disabled{lc($name)};

my $version;
if ($self->{config}->{daemon} || $self->{config}->{service}) {
if ($params{fork}) {
# server mode: check each task version in a child process
my ($reader, $writer);
pipe($reader, $writer);
Expand Down

0 comments on commit 233ce63

Please sign in to comment.