Signal Handling on Windows and Linux

406 views Asked by At

I have implemented signal handling in C on windows visual studio spefically for SIGBREAK and SIGSEVG

but when i gave the added the code which could cause segmentation fault, my signal handler function dosent get call

but if used raise(SIGSEVG), signal handler does get called

this is how I am initializing signal signal(SIGBREAK, signal_handler) signal(SIGSEVG, signal_handler)

upon further checking I got to know that every time my signal() function is returning NULL the issue is same on linux platform also(CentOS 7)

so what should I do to fix this

0

There are 0 answers