From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111665 invoked by alias); 21 Apr 2017 18:23:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111638 invoked by uid 89); 21 Apr 2017 18:23:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=2.8.0, 2017-04-01, 20170401, perl X-HELO: USA7109MR005.ACS-INC.COM Received: from usa7109mr005.acs-inc.com (HELO USA7109MR005.ACS-INC.COM) (13.28.230.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Apr 2017 18:22:41 +0000 Received: from usa7109ht001.na.xerox.net ([13.41.230.31]) by USA7109MR005.ACS-INC.COM with ESMTP/TLS/AES128-SHA256; 21 Apr 2017 12:16:01 -0500 Received: from USA7109MB022.na.xerox.net ([169.254.6.178]) by USA7109HT001.na.xerox.net ([13.41.230.31]) with mapi id 14.03.0294.000; Fri, 21 Apr 2017 12:16:06 -0500 From: "Nellis, Kenneth (Conduent)" To: "cygwin@cygwin.com" Subject: can't break out of perl script during execute() Date: Fri, 21 Apr 2017 19:18:00 -0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BC074F6@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2017-04/txt/msg00271.txt.bz2 I have a perl script that reads a (large) log file, searches for records=20 matching a certain pattern, and execute()s a binary passing in to it data=20 from the matched log record. Works great, except that I can't CTRL-C to=20 break out when the perl script is executing the binary, which is where it=20 is most of the time, so it's hard to catch it between calls to execute(). I built the binary with Cygwin's gcc. Wondering if this is a Cygwin issue=20 and if there's a known workaround. $ uname -svr CYGWIN_NT-6.1 2.8.0(0.309/5/3) 2017-04-01 20:47 $ perl --version This is perl 5, version 22, subversion 3 (v5.22.3) built for cygwin-thread-= multi Copyright 1987-2017, Larry Wall Perl may be copied only under the terms of either the Artistic License or t= he GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. $ gcc --version gcc (GCC) 5.4.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple