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 :)In reply to Signal Trapping..help please by Grygonos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |