use Moo;
use Carp qw(croak);
-BEGIN {
- router()->exclude_forwarding;
- $SIG{PIPE} = sub { log_debug { "Got a PIPE signal" } };
-}
+BEGIN { router()->exclude_forwarding }
END {
log_debug { "Killing all child processes in the process group" };
use Object::Remote::Logging qw( :log :dlog router );
use Moo;
-BEGIN { router()->exclude_forwarding }
+BEGIN {
+ $SIG{PIPE} = sub { log_debug { "Got a PIPE signal" } };
+
+ router()->exclude_forwarding
+}
# this is ro because we only actually set it using local in sub run
has is_running => (is => 'ro', clearer => 'stop');
use Object::Remote::Connector::Local;
my $connector = Object::Remote::Connector::Local->new(
- timeout => { after => 0.1 },
+ timeout => 0.1,
perl_command => [ 'perl', '-e', 'sleep 3' ],
);