New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending SIGINT signal to script while inside close() #15303
Comments
From @hakonhaglandI wrote the the following script ( p.pl ) as an answer to a use diagnostics; $SIG{INT} = sub { say "This is expected to print"; die }; Where script.pl is given as: #! /usr/bin/env perl $SIG{INT} = sub { die }; The output of running p.pl in the terminal is (if I press CTRL-C after 2 PID = 1746 According to the discussion at the referred stackoverflow.com question, I 1) Why both child and parent receives SIGINT? And is this correct behavior? 2) Why do I get the message: Uncaught exception from user code: (Note: If I don't include the "diagnostics" pragma, I only get "refcnt: fd I am using Perl v5.22.1 built for x86_64-linux-gnu-thread-multi, on Best regards, |
From @LeontOn Mon, May 2, 2016 at 10:18 PM, Håkon Hægland <perlbug-followup@perl.org>
The signal is send to the process group currently owning the terminal, so
That does sound like a bug worth investigating. Leon |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Mon May 02 13:51:30 2016, LeonT wrote:
Yes. The refcnt message means that an internal consistency check failed, because the reference count on a file handle was mismanaged somehow. -- Father Chrysostomos |
From @tonycozOn Mon May 02 13:18:15 2016, hakon.hagland@gmail.com wrote:
This looks like a duplicate of https://rt-archive.perl.org/perl5/Ticket/Display.html?id=122112 Tony |
Migrated from rt.perl.org#128056 (status was 'open')
Searchable as RT128056$
The text was updated successfully, but these errors were encountered: