void dmtcp::FileConnList::refill(bool isRestart) { // Check comments in PtyConnection::preRefill()/refill() for (iterator i = begin(); i != end(); ++i) { Connection* con = i->second; if (con->hasLock() && con->conType() == Connection::PTY) { PtyConnection *pcon = (PtyConnection*) con; pcon->preRefill(isRestart); } } ConnectionList::refill(isRestart); }
void FileConnList::refill(bool isRestart) { // Check comments in PtyConnection::preRefill()/refill() for (iterator i = begin(); i != end(); ++i) { Connection* con = i->second; if (con->hasLock() && con->conType() == Connection::PTY) { PtyConnection *pcon = (PtyConnection*) con; pcon->preRefill(isRestart); } } if (isRestart) { // The backing file will be created as a result of restoreShmArea. We need // to unlink all such files in the resume() call below. for (size_t i = 0; i < missingUnlinkedShmFiles.size(); i++) { recreateShmFileAndMap(missingUnlinkedShmFiles[i]); } } ConnectionList::refill(isRestart); }