1
0
mirror of https://github.com/simh/simh.git synced 2026-04-29 13:12:13 +00:00

ETHER: Fix possible race conditions when closing a network device

Added pcap version to the SCP output of SHOW VERSION command.
This commit is contained in:
Mark Pizzolato
2019-08-13 20:04:09 -07:00
parent d6f9c586d1
commit 6a193c032d
4 changed files with 23 additions and 11 deletions

View File

@@ -595,6 +595,8 @@ fd_set rfds, wfds, xfds;
fd_set save_rfds, save_wfds, save_xfds;
int nfds;
if (!slirp) /* Not active? */
return -1; /* That's an error */
/* Populate the GPollFDs from slirp */
g_array_set_size (slirp->gpollfds, 1); /* Leave the doorbell chime alone */
slirp_pollfds_fill(slirp->gpollfds, &slirp_timeout);