core dumps
ron%brl-vgr at sri-unix.UUCP
ron%brl-vgr at sri-unix.UUCP
Mon Nov 7 15:54:34 AEST 1983
From: Ron Natalie <ron at brl-vgr>
But that's not what you said. You said SIG_IGN. That's ignore.
That means the program never has any indication that it trapped.
This will either cause the program to continue errouneously or
cause it to enter a rather strange loop.
I feel that it is more versatile to disable core dumps external
to the program because it allows the shell to still give you the
notification of the exception and allows you to easily turn them
back on again if you want them. The two ways of disabling core
dumps, but keeping the standard exception processing demonstrated
for 4.1 BSD so far are chaning the limit on the core dump size to
zero or just making the file "core" such that it is non writable.
Even if one was to use your method of ignoring exceptions, wouldn't
it be easier to write a program similar to the "nohup" utility that
sets all the signals to IGNORE and then execs the program, this would
preclude having to modify the program to turn them on and off.
-Ron
More information about the Comp.unix.wizards
mailing list