48 #include <sys/types.h>
54 char apiExeName[] =
"rxapi";
56 apiExeArg[0] = apiExeName;
59 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
77 int ignore = chdir(
"/");
79 for(
int i = 0; i < 1024; i++) {
84 if (execvp(apiExeName, apiExeArg) == -1) {
105 char *envbuffer = getenv(
"RXQUEUESESSION");
106 if (envbuffer != NULL)
108 sscanf(envbuffer,
"%p", (
char **)&sessionQueue);
124 snprintf(envbuffer,
sizeof envbuffer,
"%p", (
void *)sessionQueue);
125 setenv(
"RXQUEUESESSION", envbuffer, 1);
static void setActiveSessionQueue(QueueHandle sessionQueue)
static void startServerProcess()
static bool getActiveSessionQueue(QueueHandle &sessionQueue)
#define MAX_QUEUE_NAME_LENGTH