util.c:my_pclose: Use NULL in PL_fdpid
authorFather Chrysostomos <sprout@cpan.org>
Thu, 5 Sep 2013 08:11:59 +0000 (01:11 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 5 Sep 2013 12:59:11 +0000 (05:59 -0700)
commit49819382e088a19bed610c193947430231d2761d
treea82ef397094eabfa671e7e90744c4b7a87ca5cca
parent9090718a57d0f7533af9b7c5d8eb89ee636fb661
util.c:my_pclose: Use NULL in PL_fdpid

PL_fdpid is an AV, and as of ce0d59f AVs use NULL for nonexist-
ent elements.

Without using NULL for deleted elements of PL_fdpid, we end up with
pipes appearing to be open after they have actually been closed.

I don’t know how to write a test for this, but it makes
Proc::ParallelLoop pass its tests.
util.c