Is there a way to add some logic when Cache Process Ends
Hi Community,
I am looking some kind of logic or trigger some events when cache process ends.
For example, if I set some X global when i logged into terminal and when I closed the terminal or process ends by its own, global to be removed.
Thanks in advance!!!.
SR
You need to write your own %ZSTOP routine, which can catch it. Look at the documentation
Dmitriy is correct but for your specific use case (auto-removed globals) use Process Private Globals as they are automatically deleted on process end.
You should also look at $HALT