Skip to content

Commit

Permalink
fixed Mojo::IOLoop to ignore SIGPIPE
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 1, 2011
1 parent 7988314 commit da27380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changes
@@ -1,7 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

1.96 2011-09-01 00:00:00
1.96 2011-09-02 00:00:00
- Updated jQuery to version 1.6.3.
- Fixed Mojo::IOLoop to ignore SIGPIPE.

1.95 2011-09-01 00:00:00
- Improved cookie generation slightly. (cosimo, sri)
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -33,6 +33,9 @@ has server_class => 'Mojo::IOLoop::Server';
has stream_class => 'Mojo::IOLoop::Stream';
has timeout => '0.025';

# Ignore PIPE signal
$SIG{PIPE} = 'IGNORE';

# Singleton
our $LOOP;

Expand Down

0 comments on commit da27380

Please sign in to comment.