I am working on Linux.
I wrote a function that is called when an SIGSEGV is sent.I check my program by sending from command prompt kill -SIGSEGV pid
.
Is there a logic explanation why program doesn't always catch signals ?
You can create one thread that will only "listen" for SIGSEVG signal and another one that will only poll for new internet input.
This way your program won't "miss" SIGSEVG signal while polling for new ethernet input.
精彩评论