summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-01-10 19:34:30 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-01-10 19:34:30 +0000
commit245f541b6f35ec487dff355c77302d41b2c043a6 (patch)
treee379eaf8a3734882b1db3632df0e7f0fae83d9b6 /util.c
parent7d83722c7ee15c7799108c5d79d7c9c34821ec52 (diff)
downloadperl-245f541b6f35ec487dff355c77302d41b2c043a6.tar.gz
Back out Simon's pid hackery for now.
p4raw-id: //depot/perlio@8393
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util.c b/util.c
index c9174fe555..1261b98331 100644
--- a/util.c
+++ b/util.c
@@ -2663,9 +2663,7 @@ Perl_my_pclose(pTHX_ PerlIO *ptr)
LOCK_FDPID_MUTEX;
svp = av_fetch(PL_fdpid,PerlIO_fileno(ptr),TRUE);
UNLOCK_FDPID_MUTEX;
- pid = SvIV(*svp);
- if (!pid)
- return 0;
+ pid = SvIVX(*svp);
SvREFCNT_dec(*svp);
*svp = &PL_sv_undef;
#ifdef OS2