Skip Menu |

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

Report information
The Basics
Id: 123274
Status: resolved
Priority: 0/
Queue: IPC-Run

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

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



Subject: docs of kill_kill() return value
Date: Sat, 14 Oct 2017 12:37:20 +1100
To: bug-IPC-Run [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
The docs of IPC::Run 0.96 say kill_kill() Returns a 1 if the "TERM" was sufficient, or a 0 if "KILL" was required. but running the code it is undef and 1 respectively. Sample program below. The first TERM suffices, the second ignores TERM and needs KILL. use strict; use IPC::Run; foreach my $sh ('sleep 10', 'trap "" TERM; sleep 10') { my $ipc = IPC::Run::start(['sh','-c',$sh]); sleep 1; my $ret = $ipc->kill_kill(grace=>1); print defined $ret ? $ret : "[undef]", "\n"; }
github is now the issue tracker for IPC::Run https://github.com/toddr/IPC-Run/issues/101