diff --git a/interfaces/innerkits/dump_catcher/lite_perf.cpp b/interfaces/innerkits/dump_catcher/lite_perf.cpp index 0b89c8ff117770d9c8cbf08171a0c8ed9ea267d9..c1bfd55c1cde004b2c637efacbcee55c6ef9bec0 100644 --- a/interfaces/innerkits/dump_catcher/lite_perf.cpp +++ b/interfaces/innerkits/dump_catcher/lite_perf.cpp @@ -300,9 +300,9 @@ int LitePerf::Impl::ExecDump(const std::vector& tids, int freq, int duratio } pid_t pid = 0; - pid = vfork(); + pid = fork(); if (pid < 0) { - DFXLOGE("Failed to vfork."); + DFXLOGE("Failed to fork."); return -1; } if (pid == 0) { @@ -312,9 +312,9 @@ int LitePerf::Impl::ExecDump(const std::vector& tids, int freq, int duratio _exit(-1); } - pid_t dumpPid = vfork(); + pid_t dumpPid = fork(); if (dumpPid < 0) { - DFXLOGE("Failed to vfork."); + DFXLOGE("Failed to fork."); _exit(-1); } if (dumpPid == 0) {