Revision 05476c4d sysdep/unix/main.c

View differences:

sysdep/unix/main.c
463 463
  s->type = SK_UNIX_PASSIVE;
464 464
  s->rx_hook = cli_connect;
465 465
  s->rbsize = 1024;
466
  sk_open_unix(s, path_control_socket);
466

  
467
  /* Return value intentionally ignored */
468
  unlink(path_control_socket);
469

  
470
  if (sk_open_unix(s, path_control_socket) < 0)
471
    die("Cannot create control socket %s: %m", path_control_socket);
467 472

  
468 473
  if (use_uid || use_gid)
469 474
    if (chown(path_control_socket, use_uid, use_gid) < 0)

Also available in: Unified diff