Commit 9e9346f
src: use GetCurrentProcessId() for process.pid
Commit a9c0c65 ("src: define getpid() based on OS") made src/env.cc
use `GetCurrentProcessId()` on Windows for the PID in log messages.
`GetCurrentProcessId()` is also what is used by libuv, OpenSSL and V8.
This commit makes `process.pid` use `GetCurrentProcessId()` instead of
`_getpid()` for consistency.
PR-URL: #4163
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>1 parent da6be4d commit 9e9346fCopy full SHA for 9e9346f
File tree
Expand file treeCollapse file tree
1 file changed
+1
-2
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+1
-2
lines changedOpen diff view settings
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
71 | | - |
72 | 71 | |
73 | | - |
| 72 | + |
74 | 73 | |
75 | 74 | |
76 | 75 | |
|
0 commit comments