Need signal handler that will rename core file.

Riku Kalinen / Systems riku at field.FI
Tue May 16 23:39:46 AEST 1989


mcvic at prcrs.UUCP (David J. McVicar) writes:
>	How can a process, while handling a core dumping signal, leave
>a core file in the current working directory (or other directory, if
>possible) that is not named 'core'.  ...

Seems little impossible to me. I used the following workaround, though:

When your process cathes something and thinks that it should dump core,
do the following:
  -make directory named, say, core<pid>
  -cd to that directory
  -dump core

Voila!

-riku kalinen, field oy, helsinki, finland
-riku at field.fi



More information about the Comp.unix.wizards mailing list