We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26ca91d + 59575a2 commit 0f10341Copy full SHA for 0f10341
1 file changed
lib/Mojo/IOLoop/ReadWriteProcess.pm
@@ -221,6 +221,8 @@ sub _fork {
221
# Separated handles that could be used for internal comunication.
222
my ($channel_in, $channel_out);
223
224
+ $self->session->enable;
225
+
226
if ($self->set_pipes) {
227
$input_pipe = IO::Pipe->new()
228
or $self->_new_err('Failed creating input pipe');
@@ -337,8 +339,6 @@ sub _fork {
337
339
}
338
340
$self->process_id($pid);
341
- $self->session->enable;
-
342
return $self unless $self->set_pipes();
343
344
$self->read_stream($output_pipe->reader) if $output_pipe;
0 commit comments