fletcher> If I have interrelated programs running and one
fletcher> program dumps core, and shortly thereafter, the
fletcher> other programs dump core as a result, then I lose
fletcher> the contents of the original core file because it is
fletcher> overwritten by the succeeding core files.
fletcher> I know how to solve this problem in SunOS by using
fletcher> the system call "gcore" in conjunction with a signal
fletcher> handler. What I need to know is can this same problem
fletcher> be solved on AIX and HPUX?
Catch SIGSEGV, SIGBUS, and other relevent signals, preferably
using SA_RESETHAND. In the signal handler, make a subdirectory
based on the process ID, chdir into it, and reraise the signal.
Alternatively, make your programs chdir to separate directories in
the first place.
--
Andrew.
comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>