39 char pidof_commandline[200] =
"/bin/pidof ";
40 strcat(pidof_commandline, process_name);
50 fp = popen(pidof_commandline,
"r");
52 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
55 char kill_command_and_process[200] =
"kill -9 ";
56 strcat(kill_command_and_process, pid);
57 ret = system(kill_command_and_process);
84 int ret __attribute__((unused)) = system(
"killall -q -15 DragonStarter.sh");
87 #if GpsId(PRIMARY_GPS) == GPS_DATALINK_ID
static int kill_gracefull(char *process_name)
Device independent GPS code (interface)
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.