* @brief 测试僵尸进程回收 */
| 277 | * @brief 测试僵尸进程回收 |
| 278 | */ |
| 279 | void 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 | |
| 286 | void test_wait_zombie_reap(void* /*arg*/) { |
| 287 | klog::Info("=== Wait Zombie Reap Test ==="); |