Changeset 222 in tmcsimulator for branches/FEPSimulator/FEPSim.cpp


Ignore:
Timestamp:
11/04/2017 12:12:03 PM (8 years ago)
Author:
jtorres
Message:

FEPSim.cpp: closing newsockfd (file descriptor) in while(1) loop, which creates a new file descriptor every time it accepts a connection in the loop. Because we were not doing this previously, we were getting too many open files error, as unix systems have a limit on how many file descriptors can be opened, and a new fd was being created for every message, but not closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.