提交 f56b0bb9 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Log PID.

上级 c7be8174
......@@ -18,6 +18,7 @@
#include <string>
#include <csignal> // sigaction()
#include <cerrno>
#include <unistd.h> // getpid()
static void init();
static void ignoreSignals();
......@@ -46,7 +47,7 @@ int main(int argc, char* argv[])
// Print configuration.
Settings::PrintConfiguration();
MS_INFO("starting " MS_PROCESS_NAME);
MS_INFO("starting " MS_PROCESS_NAME " [pid:%ld]", (long)getpid());
#if defined(MS_LITTLE_ENDIAN)
MS_DEBUG("detected Little-Endian CPU");
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论