{
int peer; /* socket for talking to
peer */
+ int on = 1; /* flag for ioctl */
struct sockaddr_in target; /* build the peer address */
/* here */
struct hostent *peer_host; /* host where peer is */
}
}
+ if ((gdb_Options & GDB_OPT_KEEPALIVE) &&
+ setsockopt(peer, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on)) < 0) {
+ gdb_perror("gdb: unable to start keepalives");
+ g_stop_with_errno(con);
+ return(TRUE);
+ }
+
/*----------------------------------------------------------*/
/*
/* The connection has been made, fill in the connection