shmget is not working from application becuase of smack deny,
until solve the issue, browser provider need to use only socket.
Change-Id: I8666398d92019ea654b07ea8b6c122f22add0f8c
Signed-off-by: Jung Ick Guack <jiguack@gmail.com>
int bp_shm_is_ready(bp_shm_defs *shm, int length)
{
+#ifndef NO_USE_SHM
if (shm != NULL) {
if (shm->id < 0 || shm->mem == NULL) {
if (bp_shm_alloc(shm) < 0)
if (shm->mem != NULL && length <= BASIC_SHM_SIZE)
return 0;
}
+#endif
return -1;
}
#define BROWSER_PROVIDER_SHM_H
#define BASIC_SHM_SIZE 3145728 //3M // 1445760 (720*502*4)
+#define NO_USE_SHM //Not using bp_shm_xxx, smack deny during the shmget on browser application.
typedef struct {
int key;