
11 Mar
2006
11 Mar
'06
1:15 p.m.
"Ion GaztaƱaga"
Although ugly, a function to erase all named objects is an option. You can catch UNIX signals like SIGSEGV and call a function to release all reference counts, after that, abort the program. I would need to register every named object in a global list and the destroy_all_named_before_abort() would destroy every object. After that you can exit.
Still won't work for SIGKILL and for development phase when you often stop the program via debugger. Up front cleanup, when main application starts (to use shmem), is the most safe option and quite intuitive to use. /Pavel