Browse Source

Implementation of server_name setting (-n) in progress (6)

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1643 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.68
sletz 18 years ago
parent
commit
af195e47e3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      common/JackSocket.cpp

+ 3
- 3
common/JackSocket.cpp View File

@@ -189,8 +189,8 @@ int JackServerSocket::Bind(const char* dir, const char* name, int which) // A re
addr.sun_family = AF_UNIX;

// TO CORRECT: always reuse the same name for now...
snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, "%s/jack_%s_%d", dir, name, which);
snprintf(fName, sizeof(addr.sun_path) - 1, "%s/jack_%s", dir, name);
snprintf(fName, sizeof(addr.sun_path) - 1, "%s/jack_%s_%d", dir, name, which);
strncpy(addr.sun_path, fName, sizeof(addr.sun_path) - 1);
/*
if (access(addr.sun_path, F_OK) == 0) {
goto error;
@@ -243,8 +243,8 @@ int JackServerSocket::Bind(const char* dir, int which) // A revoir : utilisation
*/

// TO CORRECT: always reuse the same name for now...
snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, "%s/jack_%d", dir, which);
snprintf(fName, sizeof(addr.sun_path) - 1, "%s/jack_%d", dir, which);
strncpy(addr.sun_path, fName, sizeof(addr.sun_path) - 1);
/*
if (access(addr.sun_path, F_OK) == 0) {
goto error;


Loading…
Cancel
Save