MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / zombie_child_work

Function zombie_child_work

tests/system_test/wait_test.cpp:279–284  ·  view source on GitHub ↗

* @brief 测试僵尸进程回收 */

Source from the content-addressed store, hash-verified

277 * @brief 测试僵尸进程回收
278 */
279void zombie_child_work(void* arg) {
280 uint64_t child_id = reinterpret_cast<uint64_t>(arg);
281 klog::Info("ZombieChild {}: exiting immediately", child_id);
282 g_wait_completed++;
283 sys_exit(0);
284}
285
286void test_wait_zombie_reap(void* /*arg*/) {
287 klog::Info("=== Wait Zombie Reap Test ===");

Callers

nothing calls this directly

Calls 2

InfoFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected