… | |
… | |
21 | |
21 | |
22 | use POSIX (); |
22 | use POSIX (); |
23 | |
23 | |
24 | use AnyEvent; |
24 | use AnyEvent; |
25 | use AnyEvent::Impl::Perl; |
25 | use AnyEvent::Impl::Perl; |
|
|
26 | |
|
|
27 | $AnyEvent::MAX_SIGNAL_LATENCY = 1; |
26 | |
28 | |
27 | print "ok 1\n"; |
29 | print "ok 1\n"; |
28 | |
30 | |
29 | AnyEvent::detect; # force-load event model |
31 | AnyEvent::detect; # force-load event model |
30 | |
32 | |
… | |
… | |
65 | Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n"; |
67 | Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n"; |
66 | EOF |
68 | EOF |
67 | exit 0; |
69 | exit 0; |
68 | }); |
70 | }); |
69 | |
71 | |
70 | my $inter = AnyEvent->timer (after => 4, cb => sub { |
|
|
71 | print "not ok 5 # inter\n";#d# temporary |
|
|
72 | print "not ok 6 # inter\n";#d# temporary |
|
|
73 | $cv2->send; |
|
|
74 | }); |
|
|
75 | |
|
|
76 | $cv2->wait; |
72 | $cv2->wait; |
77 | |
73 | |
78 | print "ok 7\n"; |
74 | print "ok 7\n"; |
79 | |
75 | |
80 | |
76 | |