dp_atexit option ?cmd?The dp_atexit command manages the dp_atexit list, a list of call- back routines that are evaluated just before the tcl+tk applica- tion is exited. This is useful for applications where clean up actions must be performed before a process can safely exit. The argument option specifies the operation to be performed on the dp_atexit list. The valid options are:
dp_atexit listReturns the current dp_atexit list.
dp_atexit set newListSets the dp_atexit list newList.
dp_atexit append callbackAppend callback to the end of the dp_atexit list.
dp_atexit appendUnique callbackAppends callback to the end of the dp_atexit list if it's not al- ready a member of the list.
dp_atexit prepend callbackInserts callback at the front of the dp_atexit list.
dp_atexit insert beforeCallback callbackInserts callback before beforeCallback in the dp_atexit list. If beforeCallback is not in the dp_atexit list, no action is taken.
dp_atexit delete callbackDelete callback from the dp_atexit list. If callback is not in the dp_atexit list, no action is taken.
dp_atexit clearClears the dp_atexit list.