X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: From: S A To: Subject: lost SIGTERM signal handler and winpcap.... Date: Fri, 28 Mar 2008 11:40:42 -0700 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/