- GetPid *get_instance_pid;
- Instance instance(hostname(), port());
- instance.set_finish(get_instance_pid= new GetPid);
-
- instance.push(new Operation(test_literal_param("getpid\r\n"), true));
-
- if (not instance.run() and not error_is_ok)
- {
- Error << "Failed to obtain pid of server";
- }
-
- _pid= get_instance_pid->pid();
-
- return _pid;