Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dcmnet/apps/storescp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,8 @@ int main(int argc, char *argv[])
*/
if (numChildren == opt_maxChildren)
{
OFLOG_INFO(storescpLogger, "Maximum number of associations reached, waiting for child process to terminate");
while (numChildren == opt_maxChildren)
OFLOG_INFO(storescpLogger, "Maximum number of associations reached, waiting for current batch of child processes to terminate");
for (size_t i = 0; i < opt_maxChildren; i++)
{
cleanChildren(-1, OFTrue);
}
Expand Down Expand Up @@ -2570,7 +2570,7 @@ static void executeCommand( const OFString &cmd )
* and then clean up the process to avoid interference with the
* counter that counts the number of child process in the main process
*/
cleanChildren(pid, opt_execSync || opt_forkMode);
cleanChildren(pid, opt_execSync);
}
else // in case we are the child process, execute the command etc.
{
Expand Down
Loading