Subject: | POE::Kernel->run() in an END{} block dies quietly with error status |
IF there are POE Sessions instantiated, and
IF those sessions are only kept alive by their aliases, and
IF one calls POE::Kernel->run() to quiet the warning, and
IF POE::Kernel->run() is called in an END{} block
THEN POE will not issue the warning,
BUT the script will exit with a non-0 exit status.
Test case:
perl -wle 'use POE; POE::Session->create(inline_states => {_start => sub
{$_[KERNEL]->alias_set("moo")}}); END { POE::Kernel->run }' ; echo $?