die(2, "socket message mismatch (found `%.*s')", (int)n, buf);
n = read(fd, buf, sizeof(buf));
if (n < 0) die(2, "read: %s", strerror(errno));
die(2, "socket message mismatch (found `%.*s')", (int)n, buf);
n = read(fd, buf, sizeof(buf));
if (n < 0) die(2, "read: %s", strerror(errno));