38 char pidof_commandline[200] =
"/bin/pidof ";
39 strcat(pidof_commandline, process_name);
49 fp = popen(pidof_commandline,
"r");
51 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
54 char kill_command_and_process[200] =
"kill -9 ";
55 strcat(kill_command_and_process, pid);
56 ret = system(kill_command_and_process);
83 int ret __attribute__((unused)) = system(
"killall -q -15 DragonStarter.sh");
static int kill_gracefull(char *process_name)
void board_init(void)
Optional board init function called at the start of mcu_init().
void board_init2(void)
Optional board init function called at the end of mcu_init().
Arch independent mcu ( Micro Controller Unit ) utilities.