I have automated tests for fairly complex software, which send SIGQUIT signals at program startup. If the signal arrives before the handler is installed, a coredump is generated, causing the test to fail.
An example program is provided below.
Even if we install the handler as the first line of the program, we could still potentially get a crashdump. Is there a way to install a SIGQUIT handler so that crashdumps are never generated?
void sigquit(int signo)
{
_exit(0);
}
int main()
{
print("Hello");
signal(SIGQUIT,sigquit)
for(;;);
return 0;
}