Skip Menu |

This queue is for tickets about the IPC-ChildSafe CPAN distribution.

Report information
The Basics
Id: 27939
Status: open
Priority: 0/
Queue: IPC-ChildSafe

People
Owner: Nobody in particular
Requestors: mattias.j.andersson [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: SIGINT
Date: Tue, 3 Jul 2007 14:29:25 +0200
To: bug-IPC-ChildSafe [...] rt.cpan.org
From: "Mattias Andersson" <mattias.j.andersson [...] gmail.com>
Hi, I think IPC::ChildSafe breaks my SIGINT handler. Consider the following code snippet: use strict; use warnings; use IPC::ChildSafe; $SIG{INT} = sub { die "caught SIGIND\n" }; my $SH = IPC::ChildSafe->new('sh', 'echo ++EOT++', '++EOT++'); #$SH->cmd('ls'); #$SH->_puts('ls'); for(;;) { sleep(1); } If I hit Control-C my handler runs. If I comment one of the calls to IPC::ChildSafe and hits Control-C the application exists without running my handler. The sigint.pl program shipped with IPC::ChildSafe seems to have the same problem. ; perl test.pl ^C ; ; perl -MIPC::ChildSafe -e 'print $IPC::ChildSafe::VERSION, "\n"' 3.16 ; uname -a SunOS 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V210 ; perl -v This is perl, v5.8.8 built for sun4-solaris Copyright 1987-2006, 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. ;
From: DSB [...] cpan.org
I can easily believe this problem exists. My plan is to solve this and many other issues by rewriting the module as pure perl. Just need the time to do so.
Subject: Re: [rt.cpan.org #27939] SIGINT
Date: Wed, 4 Jul 2007 09:54:51 +0200
To: bug-IPC-ChildSafe [...] rt.cpan.org
From: "Mattias Andersson" <mattias.j.andersson [...] gmail.com>
Ok, please do. I use this module heavily and am very happy about it. As you are about to re-write it I have some feature suggestions ;-) I use sub classes of IPC::ClearTool to be able to receive callbacks for each line of output from stdout. This is useful for updating progress bars for long commands such as ct mklabel –r. Another Sub class logs each ClearCase operation to file, with optional benchmarks for each operation. This is for debug purposes. Regards Mattias On 7/3/07, via RT <bug-IPC-ChildSafe@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=27939 > > > I can easily believe this problem exists. My plan is to solve this and > many other issues by rewriting the module as pure perl. Just need the > time to do so. >
-- Mattias Andersson mattias.j.andersson@gmail.com +46 70 3236302 +46 90 143900