X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=FpQ
	78qbMcEHRZfy4hEucK08tP6bE23PUE6JDXlhEjn95UXvIAkGPZeL7FJy1y60Ggzf
	Rdra/J6lsRpns8ea/FApnc8AjRh4RMcU7j3M+0XF0PwXI6Vgg+vns+3U3opo8ude
	M8782ov2EI1a+Q4WU5Qrhm18UWzPI7Th5tBoVWZo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; s=default; bh=M+MGWtHcG
	6t5IL0yRprlckKDFVA=; b=STpZhUCQo/zgGMuNkxif5KQ/bD4CVyZbCg+QlG+gg
	LxEP2HNzxNXMSPH6sXsnERRiuuAd1I0uBWr2FsYjEgGfTyIC7ydeSww2eyokiemR
	3Y7WAPfyrDvUJkN6ss+aK9g3Ey90SJ27jtq06o1FYVMFrfI/I/U8zsjyLLZC/lnj
	HY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
From: "Nellis, Kenneth (Conduent)" <Kenneth.Nellis@conduent.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: can't break out of perl script during execute()
Date: Fri, 21 Apr 2017 17:16:06 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BC074F6@USA7109MB022.na.xerox.net>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v3LIO3d7015031

I have a perl script that reads a (large) log file, searches for records 
matching a certain pattern, and execute()s a binary passing in to it data 
from the matched log record. Works great, except that I can't CTRL-C to 
break out when the perl script is executing the binary, which is where it 
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 
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 the
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


