This is the mail archive of the
mailing list for the Cygwin project.
can't break out of perl script during execute()
- From: "Nellis, Kenneth (Conduent)" <Kenneth dot Nellis at conduent dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 21 Apr 2017 17:16:06 +0000
- Subject: can't break out of perl script during execute()
- Authentication-results: sourceware.org; auth=none
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple