CID 16424 livebox.c
CID 13895 fault.c
Change-Id: Iaa427ec8877ab490da6cf7ef7a27ae87a4ac5bb8
snprintf(log_fname, sizeof(log_fname), "/opt/share/live_magazine/log/slave.%d", getpid());
fd = open(log_fname, O_WRONLY|O_CREAT|O_SYNC, 0644);
- if (fd > 0) {
+ if (fd >= 0) {
if (write(fd, so_fname, strlen(so_fname)) != strlen(so_fname))
ErrPrint("Failed to recording the fault SO filename (%s)\n", so_fname);
close(fd);
char *livebox_pinup(const char *pkgname, const char *id, int pinup)
{
- Eina_List *l;
struct instance *inst;
- struct item *item;
char *ret;
inst = so_find_instance(pkgname, id);
return NULL;
}
- l = find_item(inst);
- if (!l) {
- ErrPrint("Instance is not found (%s - %s, pinup[%d])\n", pkgname, id, pinup);
- return NULL;
- }
-
- item = eina_list_data_get(l);
ret = so_pinup(inst, pinup);
return ret;
}