...also when shmat() fails
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 9 May 2014 14:18:29 +0000 (10:18 -0400)
committerMike Blumenkrantz <zmike@samsung.com>
Fri, 9 May 2014 14:18:29 +0000 (10:18 -0400)
src/lib/ecore_x/xlib/ecore_x_image.c

index d77c872..9b629b5 100644 (file)
@@ -260,6 +260,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
    if ((im->xim->data == (char *)-1) ||
        (!im->xim->data))
      {
+        ERR("shmat failed: %s", strerror(errno));
         shmdt(im->shminfo.shmaddr);
         shmctl(im->shminfo.shmid, IPC_RMID, 0);
         XDestroyImage(im->xim);