summaryrefslogtreecommitdiff
path: root/src/inspector_agent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r--src/inspector_agent.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index 215e91873a..798b80df86 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -13,8 +13,8 @@
#include <vector>
#ifdef __POSIX__
-#include <limits.h>
-#include <unistd.h> // setuid, getuid
+#include <limits.h> // PTHREAD_STACK_MIN
+#include <pthread.h>
#endif // __POSIX__
namespace node {
@@ -108,7 +108,8 @@ static int StartDebugSignalHandler() {
CHECK_EQ(0, pthread_sigmask(SIG_SETMASK, &sigmask, nullptr));
CHECK_EQ(0, pthread_attr_destroy(&attr));
if (err != 0) {
- fprintf(stderr, "node[%d]: pthread_create: %s\n", getpid(), strerror(err));
+ fprintf(stderr, "node[%u]: pthread_create: %s\n",
+ GetProcessId(), strerror(err));
fflush(stderr);
// Leave SIGUSR1 blocked. We don't install a signal handler,
// receiving the signal would terminate the process.