int rc;
int error;
int arg = 1;
- long pid;
memset(&req, 0, sizeof(req));
install_signal_handlers(false);
- pid = (long)getpid();
-
#ifdef ENABLE_IPV6
if(!use_ipv6)
#endif
if(got_exit_signal) {
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
* must raise the same signal SIGINT or SIGTERM that we
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];
install_signal_handlers(false);
- pid = (long)getpid();
-
sock = socket(socket_domain, SOCK_STREAM, 0);
all_sockets[0] = sock;
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
int flag;
int rc;
int error;
- long pid;
struct testcase test;
int result = 0;
install_signal_handlers(true);
- pid = (long)getpid();
-
#ifdef ENABLE_IPV6
if(!use_ipv6)
#endif
if(got_exit_signal) {
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
* must raise the same signal SIGINT or SIGTERM that we