chiark / gitweb /
Apply the remains of Ross's patch to build on Ubuntu 8.10.
[disorder] / server / play.c
index af42bd3ae2a17e819859a22396edbcfba9e58731..c60d9325b9a2ca96de83da01d4c6ea9a7deea09d 100644 (file)
@@ -365,7 +365,8 @@ static int start(ev_source *ev,
             || write(sfd, q->id, l) < 0)
            fatal(errno, "writing to %s", addr.sun_path);
          /* Await the ack */
-         read(sfd, &l, 1);
+         if (read(sfd, &l, 1) < 0) 
+               fatal(errno, "reading ack from %s", addr.sun_path);
          /* Plumbing */
          xdup2(np[0], 0);
          xdup2(sfd, 1);