mirror of
https://github.com/open-simh/simh.git
synced 2026-01-28 04:58:26 +00:00
SCP: Make sure that log and debug file I/O use a large (64K) buffer
This commit is contained in:
@@ -1860,6 +1860,7 @@ else {
|
||||
*pref = NULL;
|
||||
return SCPE_OPENERR;
|
||||
}
|
||||
setvbuf (*pf, NULL, _IOFBF, 65536);
|
||||
(*pref)->file = *pf;
|
||||
(*pref)->refcount = 1; /* need close */
|
||||
}
|
||||
|
||||
@@ -2598,9 +2598,7 @@ while (*tptr) {
|
||||
else
|
||||
strcpy (lp->txlogname, mp->logfiletmpl);
|
||||
r = sim_open_logfile (lp->txlogname, TRUE, &lp->txlog, &lp->txlogref);
|
||||
if (r == SCPE_OK)
|
||||
setvbuf (lp->txlog, NULL, _IOFBF, 65536);
|
||||
else {
|
||||
if (r != SCPE_OK) {
|
||||
free (lp->txlogname);
|
||||
lp->txlogname = NULL;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user