Skip Menu |
 

This queue is for tickets about the IO-Async CPAN distribution.

Report information
The Basics
Id: 132677
Status: new
Priority: 0/
Queue: IO-Async

People
Owner: Nobody in particular
Requestors: MMCCLIMON [...] cpan.org
Cc:
AdminCc:

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



Subject: Warnings from IO::Async::Handle during global destruction
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.18-29029-1590173296-1927.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1590173296-29029-3"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 278
Download (untitled) / with headers
text/plain 278b
I am doing something admittedly weird (using Parallel::ForkManager inside an IO::Async::Process), and getting a bunch of warnings during global destruction. I recognize that the likely answer is "don't do that," but nevertheless, the attached patch seems sufficient to fix it.
Subject: uninit-warnings.patch
MIME-Version: 1.0
Content-Type: application/octet-stream; name="uninit-warnings.patch"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="uninit-warnings.patch"
Content-Transfer-Encoding: base64
Content-Length: 745
From b68ff2dd24d86376e87c8958f518181ac8d32905 Mon Sep 17 00:00:00 2001 From: Michael McClimon <michael@mcclimon.org> Date: Fri, 22 May 2020 14:46:48 -0400 Subject: [PATCH] fix --- lib/IO/Async/Handle.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IO/Async/Handle.pm b/lib/IO/Async/Handle.pm index 673372b1..84c68a59 100644 --- a/lib/IO/Async/Handle.pm +++ b/lib/IO/Async/Handle.pm @@ -497,7 +497,7 @@ sub new_close_future my $self = shift or return; my $future = shift; - @{ $self->{close_futures} } = grep { $_ != $future } @{ $self->{close_futures} }; + @{ $self->{close_futures} } = grep { $_ && ($_ != $future) } @{ $self->{close_futures} }; }) ); -- 2.25.0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.