On Wed, Jul 11, 2007 at 09:03:29AM -0700, John Napiorkowski wrote: > I can demonstrate this by placing an END block in my > root modules (the "MyApp.pm" module) > > END { > print "got END BLOCK!\n"; > } > > This will never run under the conditions I have > described. > > HOWEVER, if I set SIG handlers manually like so: > > $SIG{INT} = sub { print "got INT!\n" }; > $SIG{TERM} = sub { print "got TERM!\n" }; > > END { > print "got END BLOCK!\n"; > } > > Then the END block does run.
Is this different from what you would expect? try: $ perl -e 'END { print "going away\n" }; sleep 1 while(1);' ^C $ _ compared to: $ perl -e 'END { print "going away\n" }' going away $ _ >From what I've observed, a signal won't trigger END blocks even outside of Catalyst. Regards, Jonathan Rockway _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/