summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-08-06 23:56:46 +0200
committerhv <hv@crypt.org>2002-08-29 11:44:00 +0000
commit4d76a3443f3312704ec3416fd425698e92a208cd (patch)
tree769fa92e2e9f3a46a171807a82b7d5fd7c623c0a /perl.c
parent85cf7f2e6c0eee352cdc28bfa7e316574993c2ba (diff)
downloadperl-4d76a3443f3312704ec3416fd425698e92a208cd.tar.gz
posixify getppid on linux-multithread
Message-Id: <20020806215646.3f6852bb.rgarciasuarez@free.fr> p4raw-id: //depot/perl@17798
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 58e2ac1fd8..5aae0c88c7 100644
--- a/perl.c
+++ b/perl.c
@@ -3651,6 +3651,9 @@ S_init_postdump_symbols(pTHX_ register int argc, register char **argv, register
sv_setiv(GvSV(tmpgv), (IV)PerlProc_getpid());
SvREADONLY_on(GvSV(tmpgv));
}
+#ifdef THREADS_HAVE_PIDS
+ PL_ppid = (IV)getppid();
+#endif
/* touch @F array to prevent spurious warnings 20020415 MJD */
if (PL_minus_a) {