Showing the changes to assignment-client/src/AssignmentClientMonitor.cpp (1 of 2 files). Show all
Unified · Split
| @@ -74,7 +74,7 @@ AssignmentClientMonitor::AssignmentClientMonitor(const unsigned int numAssignmen · 73 unmodified lines | ||
| 74 | 74 | auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver(); |
| 75 | 75 | packetReceiver.registerListener(PacketType::AssignmentClientStatus, this, "handleChildStatusPacket"); |
| 76 | 76 | |
| 77 | − adjustOsResources(std::max(_numAssignmentClientForks, _maxAssignmentClientForks)); | |
| 77 | + adjustOSResources(std::max(_numAssignmentClientForks, _maxAssignmentClientForks)); | |
| 78 | 78 | // use QProcess to fork off a process for each of the child assignment clients |
| 79 | 79 | for (unsigned int i = 0; i < _numAssignmentClientForks; i++) { |
| 80 | 80 | spawnChildClient(); |
| @@ -377,7 +377,7 @@ bool AssignmentClientMonitor::handleHTTPRequest(HTTPConnection* connection, cons · 296 unmodified lines | ||
| 377 | 377 | return true; |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | −void AssignmentClientMonitor::adjustOsResources(unsigned int numForks) const | |
| 380 | +void AssignmentClientMonitor::adjustOSResources(unsigned int numForks) const | |
| 381 | 381 | { |
| 382 | 382 | #ifdef _POSIX_SOURCE |
| 383 | 383 | // QProcess on Unix uses six (I think) descriptors, some temporarily, for each child proc. |