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