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");