Browse Source

revert b55ef77edb (JACK_CLIENT_PID_OVERRIDE)

This is actually not needed because ardour2 script is reusing the process
tags/v1.9.10
Nedko Arnaudov 16 years ago
parent
commit
6525215dcd
1 changed files with 1 additions and 16 deletions
  1. +1
    -16
      common/JackLibClient.cpp

+ 1
- 16
common/JackLibClient.cpp View File

@@ -70,9 +70,6 @@ JackLibClient::~JackLibClient()
int JackLibClient::Open(const char* server_name, const char* name, jack_options_t options, jack_status_t* status)
{
int shared_engine, shared_client, shared_graph, result;
int pid;
char * pid_str;

jack_log("JackLibClient::Open name = %s", name);

strncpy(fServerName, server_name, sizeof(fServerName));
@@ -90,20 +87,8 @@ int JackLibClient::Open(const char* server_name, const char* name, jack_options_
goto error;
}

pid = 0;
pid_str = getenv("JACK_CLIENT_PID_OVERRIDE");
if (pid_str != NULL)
{
pid = atoi(pid_str);
}

if (pid == 0)
{
pid = JackTools::GetPID();
}

// Require new client
fChannel->ClientOpen(name_res, pid, &shared_engine, &shared_client, &shared_graph, &result);
fChannel->ClientOpen(name_res, JackTools::GetPID(), &shared_engine, &shared_client, &shared_graph, &result);
if (result < 0) {
jack_error("Cannot open %s client", name_res);
goto error;


Loading…
Cancel
Save