|
|
|
@ -279,6 +279,7 @@ char raptor_sm_deallocate_session(char* username) {
|
|
|
|
|
asprintf(&command_string, "ssh root@%s \'ps -p %d | grep %d\'", ip, serverpid, serverpid);
|
|
|
|
|
FILE *fp;
|
|
|
|
|
char output[1024];
|
|
|
|
|
memset(output, 0, sizeof(output));
|
|
|
|
|
// Open the command for reading
|
|
|
|
|
fp = popen(command_string, "r");
|
|
|
|
|
if (fp == NULL) {
|
|
|
|
@ -764,6 +765,7 @@ pid_t raptor_sm_run_remote_server(char* username, char *const argv[], char* dbfi
|
|
|
|
|
asprintf(&command_string, "ssh root@%s \'ps -p %d | grep %d\'", ip, ret, ret);
|
|
|
|
|
FILE *fp;
|
|
|
|
|
char output[1024];
|
|
|
|
|
memset(output, 0, sizeof(output));
|
|
|
|
|
// Open the command for reading
|
|
|
|
|
fp = popen(command_string, "r");
|
|
|
|
|
if (fp == NULL) {
|
|
|
|
@ -848,6 +850,7 @@ pid_t raptor_sm_run_remote_server(char* username, char *const argv[], char* dbfi
|
|
|
|
|
|
|
|
|
|
FILE *fp;
|
|
|
|
|
char output[1024];
|
|
|
|
|
memset(output, 0, sizeof(output));
|
|
|
|
|
|
|
|
|
|
// Open the command for reading
|
|
|
|
|
fp = popen(command_string, "r");
|
|
|
|
|