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:
parent
d9d26a6b2c
commit
4a7bf79fcc
@ -1053,7 +1053,6 @@ int main(int argc, char *argv[])
|
|||||||
int rc;
|
int rc;
|
||||||
int error;
|
int error;
|
||||||
int arg = 1;
|
int arg = 1;
|
||||||
long pid;
|
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
|
|
||||||
@ -1136,8 +1135,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
install_signal_handlers(false);
|
install_signal_handlers(false);
|
||||||
|
|
||||||
pid = (long)getpid();
|
|
||||||
|
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
if(!use_ipv6)
|
if(!use_ipv6)
|
||||||
#endif
|
#endif
|
||||||
@ -1377,7 +1374,7 @@ server_cleanup:
|
|||||||
|
|
||||||
if(got_exit_signal) {
|
if(got_exit_signal) {
|
||||||
logmsg("========> %s rtspd (port: %d pid: %ld) exits with signal (%d)",
|
logmsg("========> %s rtspd (port: %d pid: %ld) exits with signal (%d)",
|
||||||
ipv_inuse, (int)port, pid, exit_signal);
|
ipv_inuse, (int)port, (long)getpid(), exit_signal);
|
||||||
/*
|
/*
|
||||||
* To properly set the return status of the process we
|
* To properly set the return status of the process we
|
||||||
* must raise the same signal SIGINT or SIGTERM that we
|
* must raise the same signal SIGINT or SIGTERM that we
|
||||||
|
|||||||
@ -1881,7 +1881,6 @@ int main(int argc, char *argv[])
|
|||||||
int rc = 0;
|
int rc = 0;
|
||||||
int error;
|
int error;
|
||||||
int arg = 1;
|
int arg = 1;
|
||||||
long pid;
|
|
||||||
const char *connecthost = "127.0.0.1";
|
const char *connecthost = "127.0.0.1";
|
||||||
const char *socket_type = "IPv4";
|
const char *socket_type = "IPv4";
|
||||||
char port_str[11];
|
char port_str[11];
|
||||||
@ -2020,8 +2019,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
install_signal_handlers(false);
|
install_signal_handlers(false);
|
||||||
|
|
||||||
pid = (long)getpid();
|
|
||||||
|
|
||||||
sock = socket(socket_domain, SOCK_STREAM, 0);
|
sock = socket(socket_domain, SOCK_STREAM, 0);
|
||||||
|
|
||||||
all_sockets[0] = sock;
|
all_sockets[0] = sock;
|
||||||
@ -2366,7 +2363,7 @@ sws_cleanup:
|
|||||||
|
|
||||||
if(got_exit_signal) {
|
if(got_exit_signal) {
|
||||||
logmsg("========> %s sws (%s pid: %ld) exits with signal (%d)",
|
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
|
* To properly set the return status of the process we
|
||||||
* must raise the same signal SIGINT or SIGTERM that we
|
* must raise the same signal SIGINT or SIGTERM that we
|
||||||
|
|||||||
@ -555,7 +555,6 @@ int main(int argc, char **argv)
|
|||||||
int flag;
|
int flag;
|
||||||
int rc;
|
int rc;
|
||||||
int error;
|
int error;
|
||||||
long pid;
|
|
||||||
struct testcase test;
|
struct testcase test;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
@ -637,8 +636,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
install_signal_handlers(true);
|
install_signal_handlers(true);
|
||||||
|
|
||||||
pid = (long)getpid();
|
|
||||||
|
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
if(!use_ipv6)
|
if(!use_ipv6)
|
||||||
#endif
|
#endif
|
||||||
@ -861,7 +858,7 @@ tftpd_cleanup:
|
|||||||
|
|
||||||
if(got_exit_signal) {
|
if(got_exit_signal) {
|
||||||
logmsg("========> %s tftpd (port: %d pid: %ld) exits with signal (%d)",
|
logmsg("========> %s tftpd (port: %d pid: %ld) exits with signal (%d)",
|
||||||
ipv_inuse, (int)port, pid, exit_signal);
|
ipv_inuse, (int)port, (long)getpid(), exit_signal);
|
||||||
/*
|
/*
|
||||||
* To properly set the return status of the process we
|
* To properly set the return status of the process we
|
||||||
* must raise the same signal SIGINT or SIGTERM that we
|
* must raise the same signal SIGINT or SIGTERM that we
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user