delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BAY128-W61940D459BA2828752A6ED2F90@phx.gbl> |
From: | S A <sagarwal10 AT hotmail DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | lost SIGTERM signal handler and winpcap.... |
Date: | Fri, 28 Mar 2008 11:40:42 -0700 |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m2SIfNgj003420 |
Hi (I've posted this question on the winpcap mailing list but didn't get a response - just thought I'd check here too) 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. If I re-register the my signal handler after the call to pcap_next_ex, then the handler is invoked as expected. I've looked at the winpcap sources and to the best of my knowledge I didn't see any code registering its own SIG_TERM handler. Here's the really strange part: if I do an strace on my application, then my signal handler gets invoked correctly!! Can't explain this. If you have any ideas on what I could look at next please let me know. Not familiar at all with the underlying Windows signal handling - I know pcap_next_ex() eventually calles WaitForSingleObject & WaitForMultipleObject. thanks. _________________________________________________________________ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |