Skip to content

Commit cdba607

Browse files
committed
Set emit_from_sigchld to 0
1 parent d84d4ee commit cdba607

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

t/02_parallel.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ use Mojo::IOLoop::ReadWriteProcess qw(parallel batch process pool);
1212

1313
my $sleepduration = 0;
1414

15+
my $session = Mojo::IOLoop::ReadWriteProcess::Session->new();
16+
$session->emit_from_sigchld(0);
17+
1518
subtest parallel => sub {
1619
my $n_proc = 4;
1720
my $fired;
@@ -25,6 +28,8 @@ subtest parallel => sub {
2528
$n_proc
2629
);
2730

31+
is ($session, $c->first->session, "Session is the singleton!");
32+
2833
isa_ok($c, "Mojo::IOLoop::ReadWriteProcess::Pool");
2934
is $c->size(), $n_proc;
3035

0 commit comments

Comments
 (0)