{ package Crypt::Monkeysphere::MSVA::Monitor;
+ use Module::Load::Conditional;
use strict;
use warnings;
sub childmain {
my $self = shift;
+ $0 = 'MSVA (perl) Upgrade Monitor';
+
$self->{files} = [ $0, values(%INC) ];
$self->{logger}->log('debug3', "setting up monitoring on these files:\n%s\n", join("\n", @{$self->{files}}));
require Linux::Inotify2;
- $self->{inotify} = new Linux::Inotify2
+ $self->{inotify} = Linux::Inotify2::->new()
or die "unable to create new inotify object: $!";
my $flags = 0xc06;