Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
I have a daemon that runs and checks a database table, acting as a queue in this case, for a link to a config file of batch queries to be executed. If there is not an uncompleted batch of queries to run it sleeps. This process will run in definitely, "ideally". When it does shut down or I do have a need for it to shut down I was thinking I should trap the ^C and/or ^X and/or the dos box close and have the dbi disconnect the handle to the queue database all nice like.. I have zero expereince in signal trapping/handling at the os level, and sup search yielded very little help.
Any examples, links, pointers would be much appreciated. Thanks :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Signal Trapping..help please
by Ovid (Cardinal) on Dec 02, 2003 at 19:52 UTC | |
|
Re: Signal Trapping..help please
by Zaxo (Archbishop) on Dec 02, 2003 at 19:53 UTC | |
|
Re: Signal Trapping..help please
by holo (Monk) on Dec 02, 2003 at 20:05 UTC |