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

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



Hi

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
application.

Does pcap_next_ex register its own SIG_TERM signal
handler? 

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?

thanks.

_________________________________________________________________
Watch “Cause Effect,” a show about real people making a real difference.  Learn more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause


More information about the Winpcap-users mailing list