77 char pidof_commandline[200] =
"/bin/pidof ";
78 strcat(pidof_commandline, process_name);
88 fp = popen(pidof_commandline,
"r");
90 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
93 char kill_command_and_process[200] =
"kill -9 ";
94 strcat(kill_command_and_process, pid);
95 ret = system(kill_command_and_process);
122 int ret __attribute__((unused)) = system(
"killall -q -15 DragonStarter.sh");
Initialization and configuration of the MT9V117 CMOS Chip.
void board_init2(void)
Optional board init function called at the end of mcu_init().
void board_init(void)
Optional board init function called at the start of mcu_init().
static int kill_gracefull(char *process_name)
Initialization and configuration of the MT9F002 CMOS Chip.
Arch independent mcu ( Micro Controller Unit ) utilities.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.