[Winpcap-users] pcap_next_ex() and lost SIGTERM signal handler.....

S A sagarwal10 at hotmail.com
Thu Mar 27 21:09:59 GMT 2008


I'm using Winpcap 4.0.2 in a cygwin application for
local packet capture.

My application registers a SIG_TERM signal handler.

But once i call pcap_next_ex(), my signal handler
never gets invoked upon sending a kill -TERM to the

Does pcap_next_ex register its own SIG_TERM signal

If I re-register the my signal handler after
the call to pcap_next_ex, then the handler is invoked
as expected.

Looking at the sources I see rpcapd.c registering
a couple of handlers. But I'm not using remote pcap.

And it looks like pcap-dos.c registers a SIGSEGV/SIGILL/SIGFPE
handlers but not a SIG_TERM. 

Could you please help me on what should be the right behaviour?


Watch “Cause Effect,” a show about real people making a real difference.  Learn more.

More information about the Winpcap-users mailing list