Skip to content

Instantly share code, notes, and snippets.

/ev.diff Secret

Created June 9, 2016 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1935093b0ef5700bf038f07f1bfdfcf5 to your computer and use it in GitHub Desktop.
Save anonymous/1935093b0ef5700bf038f07f1bfdfcf5 to your computer and use it in GitHub Desktop.
diff --git a/lib/Mojo/Reactor/EV.pm b/lib/Mojo/Reactor/EV.pm
index 9cbc844..46b0320 100644
--- a/lib/Mojo/Reactor/EV.pm
+++ b/lib/Mojo/Reactor/EV.pm
@@ -2,11 +2,13 @@ package Mojo::Reactor::EV;
use Mojo::Base 'Mojo::Reactor::Poll';
use Carp 'croak';
+use Config;
use EV 4.0;
-my $EV;
+# No fork emulation support
+die "EV does not does not support fork emulation.\n" if $Config{d_pseudofork};
-sub CLONE { die "EV does not work with ithreads.\n" }
+my $EV;
sub DESTROY { undef $EV }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment