Sun Studio 12: Debugging a Program With dbx

exit exitcode

The exit event occurs when the process has exited.