Is it possible to disable a specific process from core dumping ?
In my environment I have 2 bespoke application processes which needs to be stopped from core dumping but any other process should be allowed to core dump.
If I do : coreadm -d process it will stop all per processes from core dumping.
One solution, if you don't like the core-dump file, is to find out where the process dumps and make the directory (perms) where it dumps so the process cannot write to it. (or the same technique for the file name).
Thanks for your suggestion but I have problem in implementing that.
First is my global core is /var/core and if I change the directory permission for the user then no other process by that user will be able to core dump.
Specifically I need to prevent the bas and plc process from core dumping these 2 files:
I can't change the file permission as the core file name will change every time with the time and process_id and I need to have my core file the same format as:
global core file pattern: /var/core/core_%n_%f_%u_%g_%t_%p
Any way to wriggle out of this? Many Thanks mate . baner_n