Skip to content

Commit

Permalink
fix a bug in Mojo::IOLoop::Subprocess where the pipe used for IPC cou…
Browse files Browse the repository at this point in the history
…ld disappear because of a timeout (closes #1026)
  • Loading branch information
kraih committed Jan 3, 2017
1 parent bf6682a commit 59f0321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,5 +1,7 @@

7.14 2017-01-02
7.14 2017-01-03
- Fixed a bug in Mojo::IOLoop::Subprocess where the pipe used for IPC could
disappear because of a timeout.

7.13 2016-12-23
- Deprecated Mojo::Message::Response::is_status_class in favor of new is_*
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Subprocess.pm
Expand Up @@ -34,7 +34,7 @@ sub run {
}

# Parent
my $stream = Mojo::IOLoop::Stream->new($reader);
my $stream = Mojo::IOLoop::Stream->new($reader)->timeout(0);
$self->ioloop->stream($stream);
my $buffer = '';
$stream->on(read => sub { $buffer .= pop });
Expand Down

0 comments on commit 59f0321

Please sign in to comment.