src: fix process.pid for daemon process
The process.pid
was initialized in the SetupProcessObject
method.
so we change the implementation via getter method.
Fix: https://github.com/nodejs/node/issues/24539
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines