flush writes

This commit is contained in:
David Schmenk 2021-05-09 12:15:13 -07:00 committed by GitHub
parent d1fb5cd02b
commit 684af54c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */