| 27 | // --------------------------------------------------------------------------- |
| 28 | |
| 29 | void sigterm_target(void* /*arg*/) { |
| 30 | // Sleep long enough for the parent to send SIGTERM |
| 31 | (void)sys_sleep(5000); |
| 32 | // Should never reach here -- SIGTERM default action terminates |
| 33 | sys_exit(0); |
| 34 | } |
| 35 | |
| 36 | void test_sigterm_default(void* /*arg*/) { |
| 37 | klog::Info("=== Signal: SIGTERM Default Test ==="); |