From 684af54c436d2014a9cfae076d7314d419557e70 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Sun, 9 May 2021 12:15:13 -0700 Subject: [PATCH] flush writes --- src/a2pid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/a2pid.c b/src/a2pid.c index 59cdce8..a3c07b7 100755 --- a/src/a2pid.c +++ b/src/a2pid.c @@ -183,6 +183,8 @@ int vdrvwrite(int afd, int drive, int block) lseek(vfd, block * 512, 0); if (write(vfd, block_buff, 512) != 512) err = 0x27; /* ProDOS I/O error */ + else + fsync(vfd); } else err = 0x28; /* ProDOS No device connected error */