diff options
-rw-r--r-- | tizen/src/display/maru_shm.c | 4 | ||||
-rw-r--r-- | tizen/src/skin/client/native_src/share.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tizen/src/display/maru_shm.c b/tizen/src/display/maru_shm.c index c1967a173a..414491ae51 100644 --- a/tizen/src/display/maru_shm.c +++ b/tizen/src/display/maru_shm.c @@ -206,7 +206,7 @@ static void maru_shm_quit(void) if (shmctl(skin_shmid, IPC_STAT, &shm_info) == -1) { ERR("shmctl failed\n"); - shm_info.shm_nattch = -1; + shm_info.shm_nattch = 0; } if (shmdt(shared_memory) == -1) { @@ -224,7 +224,7 @@ static void maru_shm_quit(void) } else { INFO("shared memory was removed\n"); } - } else if (shm_info.shm_nattch != -1) { + } else { INFO("number of current attaches = %d\n", (int)shm_info.shm_nattch); } diff --git a/tizen/src/skin/client/native_src/share.c b/tizen/src/skin/client/native_src/share.c index 4063908bb6..b96d48e9ac 100644 --- a/tizen/src/skin/client/native_src/share.c +++ b/tizen/src/skin/client/native_src/share.c @@ -106,7 +106,7 @@ JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorShmSkin_shmdt fflush(stderr); perror("share.c: "); - shm_info.shm_nattch = -1; + shm_info.shm_nattch = 0; } fprintf(stdout, "share.c: clean up the shared memory\n"); @@ -129,7 +129,7 @@ JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorShmSkin_shmdt perror("share.c: "); return 2; } - } else if (shm_info.shm_nattch != -1) { + } else { fprintf(stdout, "share.c: number of current attaches = %d\n", (int)shm_info.shm_nattch); fflush(stdout); |