Permalink
Browse files

Add more signal handling diagnostics when asserting data at shutdown.

  • Loading branch information...
1 parent f27fa47 commit f7f761cd596cafac6d86e3d69e74965f9747bf9b @rcaputo committed Jun 28, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/POE/Resource/Signals.pm
@@ -252,6 +252,22 @@ sub _data_sig_finalize {
}
}
+ if ($kr_has_child_procs) {
+ _warn "!!! Kernel has child processes.\n";
+ }
+
+ if ($polling_for_signals) {
+ _warn "!!! Finalizing signals while polling is active.\n";
+ }
+
+ if (USE_SIGNAL_PIPE and $self->_data_sig_pipe_has_signals()) {
+ _warn "!!! Finalizing signals while signal pipe contains messages.\n";
+ }
+
+ if (exists $kr_signals{CHLD}) {
+ _warn "!!! Finalizing signals while a blanket _child signal is watched.\n";
+ }
+
%_safe_signals = ();
unless (RUNNING_IN_HELL) {

0 comments on commit f7f761c

Please sign in to comment.