Revert unnecessary difference with upstream
authorMike McCormack <mj.mccormack@samsung.com>
Fri, 18 Nov 2011 03:11:30 +0000 (12:11 +0900)
committerMike McCormack <mj.mccormack@samsung.com>
Fri, 18 Nov 2011 05:32:59 +0000 (14:32 +0900)
src/bin/quicklaunch.c

index fd1ed7c..50f26ec 100644 (file)
@@ -95,10 +95,10 @@ handle_run(int fd, unsigned long bytes)
    int argc;
 
    buf = alloca(bytes);
-   if (read(fd, buf, bytes) <= 0)
+   if (read(fd, buf, bytes) < 0)
      {
-        close(fd);
-        return;
+       close(fd);
+       return;
      }
    close(fd);
    argc = ((unsigned long *)(buf))[0];