浏览代码

Kernel: Add a bit of debug output in do_exec() to learn about thread counts.

Andreas Kling 6 年之前
父节点
当前提交
245c4bd7c8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Kernel/Process.cpp

+ 1 - 0
Kernel/Process.cpp

@@ -285,6 +285,7 @@ int Process::do_exec(String path, Vector<String> arguments, Vector<String> envir
 {
     ASSERT(is_ring3());
 
+    dbgprintf("%s(%d) do_exec: thread_count() = %d\n", m_name.characters(), m_pid, thread_count());
     // FIXME(Thread): Kill any threads the moment we commit to the exec().
     ASSERT(thread_count() == 1);