Revision 0b3bf4b1 client/client.c

View differences:

client/client.c
250 250
  bzero(&sa, sizeof(sa));
251 251
  sa.sun_family = AF_UNIX;
252 252
  strcpy(sa.sun_path, server_path);
253
  if (connect(server_fd, (struct sockaddr *) &sa, sizeof(struct sockaddr)) < 0)
253
  if (connect(server_fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0)
254 254
    die("Unable to connect to server control socket (%s): %m", server_path);
255 255
  if (fcntl(server_fd, F_SETFL, O_NONBLOCK) < 0)
256 256
    die("fcntl: %m");

Also available in: Unified diff