![]() |
|
FAQ: How do I exit without leaving locks when running my application in dbx?
Within dbx, enter the following commands:
dalias quit "call exit(255); \quit" dalias myquit "\quit"
You can also put it into a .dbxrc file. Then you enter the command quit to exit from dbx. In most cases, this should clean up and not leave behind any hidden locks. This also defines the command myquit as an alias for the standard dbx command quit.
There are a couple of minor warnings for using of this prescription:
- First, make sure you use the command quit and not the command exit to bail from DBX after running. Only the command quit has been redefined above, so entering the command exit will still leave locks behind.
- Second, if you are not using Objectivity, or if you want to exit without running a program at all, you must use the command myquit. The exit(255) action won't be defined in this case.
These warnings are not meant to discourage you from using these commands. They work well, even after a segmentation fault or other abnormal termination. You just need to be aware of the complications.
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: December 13, 2001