prpr
Well-Known Member
Can anyone advise on how to pin the blame for this simple test-case, which gives a Segmentation error on return from main():
I have no idea with gdb I'm afraid.
C:
#include <stdio.h>
#include <signal.h>
void signal_handler(int signum)
{
}
int main(int argc, char *argv[])
{
struct sigaction sigact;
sigact.sa_handler = signal_handler;
sigemptyset(&sigact.sa_mask);
sigact.sa_flags = 0;
sigaction(SIGTERM, &sigact, NULL);
return 0;
}
I have no idea with gdb I'm afraid.