| 115 | |
| 116 | #define INIT_PID 1 |
| 117 | static void _teardown_entry(struct rt_work *work, void *work_data) |
| 118 | { |
| 119 | int error; |
| 120 | void (*cb_on_reboot)(void) = work_data; |
| 121 | |
| 122 | /* cleanup of process */ |
| 123 | do |
| 124 | { |
| 125 | error = lwp_pid_wait_for_empty(RT_KILLABLE, RT_WAITING_FOREVER); |
| 126 | } |
| 127 | while (error); |
| 128 | LOG_I("All processes exited"); |
| 129 | |
| 130 | cb_on_reboot(); |
| 131 | return; |
| 132 | } |
| 133 | |
| 134 | static int _get_parent_pid(struct rt_lwp *lwp) |
| 135 | { |
nothing calls this directly
no test coverage detected