actually log write err.
authorCarsten Haitzler <raster@rasterman.com>
Sun, 16 Jan 2011 08:12:51 +0000 (08:12 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sun, 16 Jan 2011 08:12:51 +0000 (08:12 +0000)
SVN revision: 56186

legacy/efreet/src/bin/efreet_desktop_cache_create.c

index a2d6f69..9e9e4d1 100644 (file)
@@ -414,7 +414,7 @@ main(int argc, char **argv)
     tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
     if (tmpfd >= 0)
     {
-        write(tmpfd, "a", 1);
+        if (write(tmpfd, "a", 1) != 1) perror("write");
         close(tmpfd);
     }
     efreet_shutdown();