ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.362 by root, Sun Aug 14 01:57:18 2011 UTC vs.
Revision 1.364 by root, Mon Aug 15 12:56:53 2011 UTC

1318# all autoloaded methods reserve the complete glob, not just the method slot. 1318# all autoloaded methods reserve the complete glob, not just the method slot.
1319# due to bugs in perls method cache implementation. 1319# due to bugs in perls method cache implementation.
1320our @methods = qw(io timer time now now_update signal child idle condvar); 1320our @methods = qw(io timer time now now_update signal child idle condvar);
1321 1321
1322sub detect() { 1322sub detect() {
1323 return $MODEL if $MODEL; # some programs keep references to detect
1324
1323 local $!; # for good measure 1325 local $!; # for good measure
1324 local $SIG{__DIE__}; # we use eval 1326 local $SIG{__DIE__}; # we use eval
1325 1327
1326 # free some memory 1328 # free some memory
1327 *detect = sub () { $MODEL }; 1329 *detect = sub () { $MODEL };
1995This takes place when the first watcher is created. 1997This takes place when the first watcher is created.
1996 1998
1997For example, to bind a debug shell on a unix domain socket in 1999For example, to bind a debug shell on a unix domain socket in
1998F<< /tmp/debug<pid>.sock >>, you could use this: 2000F<< /tmp/debug<pid>.sock >>, you could use this:
1999 2001
2000 PERL_ANYEVENT_DEBUG_SHELL=unix/:/tmp/debug\$\$.sock perlprog 2002 PERL_ANYEVENT_DEBUG_SHELL=/tmp/debug\$\$.sock perlprog
2001 2003
2002Note that creating sockets in F</tmp> is very unsafe on multiuser 2004Note that creating sockets in F</tmp> is very unsafe on multiuser
2003systems. 2005systems.
2004 2006
2005=item C<PERL_ANYEVENT_DEBUG_WRAP> 2007=item C<PERL_ANYEVENT_DEBUG_WRAP>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines