tests/servers: remove obsolete pid variable

Variable is not used since pidfile handling moved to util.[ch]

Reviewed-by: Jay Satiro
Closes #7482
This commit is contained in:
Marc Hoersken 2021-07-23 22:14:32 +02:00
parent d9d26a6b2c
commit 4a7bf79fcc
No known key found for this signature in database
GPG key ID: 61E03CBED7BC859E
3 changed files with 3 additions and 12 deletions

View file

@ -1881,7 +1881,6 @@ int main(int argc, char *argv[])
int rc = 0;
int error;
int arg = 1;
long pid;
const char *connecthost = "127.0.0.1";
const char *socket_type = "IPv4";
char port_str[11];
@ -2020,8 +2019,6 @@ int main(int argc, char *argv[])
install_signal_handlers(false);
pid = (long)getpid();
sock = socket(socket_domain, SOCK_STREAM, 0);
all_sockets[0] = sock;
@ -2366,7 +2363,7 @@ sws_cleanup:
if(got_exit_signal) {
logmsg("========> %s sws (%s pid: %ld) exits with signal (%d)",
socket_type, location_str, pid, exit_signal);
socket_type, location_str, (long)getpid(), exit_signal);
/*
* To properly set the return status of the process we
* must raise the same signal SIGINT or SIGTERM that we