[Desc.]
[Issue]
Change-Id: I9c705dedf717fca26c8ab3251f42416246638848
EVENT=/usr/bin/da_event
FIND=/usr/bin/find
GETAPPINSTALLPATH="/usr/bin/pkgcmd -a"
+PORTFILE=/tmp/port.da
print_usage()
{
kill_manager()
{
$KILL $MANAGER
+ rm -f $PORTFILE
}
kill_app()
run_manager()
{
+ kill_manager
$MANAGER
}
// determine input_id query command
if(unlikely(query_cmd_type == 0))
{
- sprintf(command, "ls /lib/udev/input_id; echo cmd_ret:$?;");
- cmd_fp = popen(command, "r");
- _file_read(cmd_fp, buffer, BUF_SIZE);
- if(strstr(buffer, "cmd_ret:0")) // there is /lib/udev/input_id
+ if(access("/lib/udev/input_id", F_OK) == 0) // there is /lib/udev/input_id
{
query_cmd_type = 1;
}