AmendHub

Download:

jcs

/

subtext

/

amendments

/

482

bile: Only do synchronous PBFlushFile calls, fixes possible lockup

From Amend

jcs made amendment 482 about 1 year ago
--- bile.c Wed Mar 15 11:48:53 2023 +++ bile.c Tue Apr 18 23:09:36 2023 @@ -249,8 +249,7 @@ bile_flush(struct bile *bile, bool and_vol) memset(&pb, 0, sizeof(pb)); pb.ioRefNum = bile->frefnum; - /* if we're not flushing the volume, write async */ - ret = PBFlushFile(&pb, !and_vol); + ret = PBFlushFile(&pb, false); if (ret != noErr) return ret;