Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to override standard bgerror 1

Status
Not open for further replies.

smugindividual

Programmer
Apr 14, 2003
104
US
I have a background process that is set up with a catch block that will restart the process whenever a signal is caught. (design is that the background process will never be down for more than a moment)

And it works fine unless it detects a tcl error. As i understand it tcl will do it's built in error processing and kill the process and my catch block never sees a signal. I want to either disable standard tcl error processing, or modify it to send a signal to the catch block. Any help would be appreciated.
 
You only need to redefine the bgerror proc and provide your own proc:
Code:
  proc bgerror {args} { silent_log $args }
HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top