Skip to content

Commit

Permalink
Fix indeterminate wait for GC to proceed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Don-Ward committed Oct 12, 2023
1 parent c605903 commit aa7f720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/rsys.r
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@ struct b_file *fbp;
}
#endif /* NT */
errno = 0;
DEC_NARTHREADS;
if ((c = fgetc(fd)) == '\n') { /* \n terminates line */
INC_NARTHREADS_CONTROLLED;
break;
}
INC_NARTHREADS_CONTROLLED;

if (c == '\r' && (fbp->status & Fs_Untrans) == 0) {
/* \r terminates line in translated mode */
Expand Down

0 comments on commit aa7f720

Please sign in to comment.