Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index d942d78a55760ef1c178aaac004100a040d48006..401edfa482ef54c57233be20436c586d0429a712 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -152,6 +152,9 @@ double OS::nan_value() { |
return NAN; |
} |
+int OS::GetCurrentProcessId() { |
+ return static_cast<int>(getpid()); |
+} |
// ---------------------------------------------------------------------------- |
// POSIX date/time support. |