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

Function sigkill_target

tests/system_test/signal_test.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84// ---------------------------------------------------------------------------
85
86void sigkill_target(void* /*arg*/) {
87 // Attempt to ignore SIGKILL -- this should fail
88 (void)sys_sigaction(signal_number::kSigKill, kSigIgn);
89
90 // Sleep long enough for the parent to send SIGKILL
91 (void)sys_sleep(5000);
92 // Should never reach here
93 sys_exit(0);
94}
95
96void test_sigkill(void* /*arg*/) {
97 klog::Info("=== Signal: SIGKILL Test ===");

Callers

nothing calls this directly

Calls 3

sys_sigactionFunction · 0.85
sys_sleepFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected