coreadm diasble a process from core dumping

Hello All

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.

Setup: Sun Sparc V210, Solaris 10 OS

Would highly appreciate any help on this.

Thanks baner_n

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).

....Or fix the program errors that cause the core-dump.

Hi Neo,

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:

core_lhrbhsbsc501_bas_driver_1000_1000_1188306734_23889
core_lhrbhsbsc501_plc_driver_0_1_1188294822_22613

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