if (!tunnel) return 0;
rc = close (conn->fd); waitpid (tunnel->pid, NULL, 0); FREE (&conn->sockdata);
static int tunnel_socket_close (CONNECTION* conn){  TUNNEL_DATA* tunnel = (TUNNEL_DATA*) conn->data;  if (!tunnel)    return 0;  waitpid (tunnel->pid, NULL, 0);  close (conn->fd);  conn->fd = -1;  FREE (&conn->data);  return 0;}