connect occurs before sending the fd to worker.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-12 17:22:10 +01:00
parent 217a5e48e2
commit 356da3fbe4
4 changed files with 18 additions and 27 deletions

View File

@@ -77,8 +77,7 @@ fail:
return ret;
}
int send_udp_fd(main_server_st* s, struct proc_st * proc,
void* cli_addr, socklen_t cli_addr_size, int fd)
int send_udp_fd(main_server_st* s, struct proc_st * proc, int fd)
{
struct iovec iov[2];
uint8_t cmd = CMD_UDP_FD;
@@ -95,10 +94,6 @@ int send_udp_fd(main_server_st* s, struct proc_st * proc,
iov[0].iov_len = 1;
hdr.msg_iovlen++;
iov[1].iov_base = cli_addr;
iov[1].iov_len = cli_addr_size;
hdr.msg_iovlen++;
hdr.msg_iov = iov;
hdr.msg_control = control_un.control;