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

Function multi_fork_child

tests/system_test/fork_test.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100std::atomic<int> g_multi_fork_done{0};
101
102void multi_fork_child(void* arg) {
103 g_multi_fork_done++;
104 int code = static_cast<int>(reinterpret_cast<uintptr_t>(arg));
105 sys_exit(code);
106}
107
108void test_fork_multiple(void* /*arg*/) {
109 klog::Info("=== Fork Multiple Test ===");

Callers

nothing calls this directly

Calls 1

sys_exitFunction · 0.85

Tested by

no test coverage detected