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

Function child_work

tests/system_test/exit_test.cpp:354–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352// ---------------------------------------------------------------------------
353
354void child_work(void* arg) {
355 auto* flag = reinterpret_cast<std::atomic<int>*>(arg);
356 klog::Debug("child_work: running");
357 (void)sys_sleep(30);
358 *flag = 1;
359 klog::Debug("child_work: done");
360 sys_exit(0);
361}
362
363void test_zombie_process(void* /*arg*/) {
364 klog::Info("=== Zombie Process Test ===");

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.85
sys_sleepFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected