chiark / gitweb /
Apply the remains of Ross's patch to build on Ubuntu 8.10.
[disorder] / server / speaker.c
index 00fc2767b63dcdac0df4ca11fc76def715881e9c..340e995a84c40e35779c934e3ee0b2fe99f6d6c5 100644 (file)
@@ -490,7 +490,8 @@ static void mainloop(void) {
           id[l] = 0;
           D(("id %s fd %d", id, fd));
           t = findtrack(id, 1/*create*/);
-          write(fd, "", 1);             /* write an ack */
+          if (write(fd, "", 1) < 0)             /* write an ack */
+                       error(errno, "writing ack to inbound connection");
           if(t->fd != -1) {
             error(0, "%s: already got a connection", id);
             xclose(fd);