more useful options | |
PerlMonks |
Re: interrupting a daemonby Zaxo (Archbishop) |
on Oct 23, 2004 at 19:54 UTC ( [id://401880]=note: print w/replies, xml ) | Need Help?? |
The DBI connection handle's destruction will close the connection, so there is no need to arrange for a signal handler to do it. If a statement handle may still be around with unread data, you can avoid a warning by calling finish() on it. I would do that in a DESTROY or END sub rather than in the signal handler. I gave a blow-by blow account of what makes a daemon daemonic in Re: Creating a perl daemon. After Compline,
In Section
Seekers of Perl Wisdom
|
|