in reply to Re^2: Trying to exit an HTTP::Daemon based on JSON::RPC::Server::Daemon
in thread Trying to exit an HTTP::Daemon based on JSON::RPC::Server::Daemon

I think that is somehow setting signal handlers in the server_loop function?

Yes, the only way to set signal handlers is to assign to %SIG. threads explains about threads and signaling, perlipc explains more.

  • Comment on Re^3: Trying to exit an HTTP::Daemon based on JSON::RPC::Server::Daemon