Fix FreeBSD support that broke when multithreading was implemented

This commit is contained in:
Konstantin Schukraft 2021-01-11 17:23:53 +01:00
parent 5f6cad2c71
commit 88925318e0
No known key found for this signature in database
GPG key ID: ED359AB0BF214D6E
2 changed files with 3 additions and 0 deletions

View file

@ -36,3 +36,4 @@ unmount:
killall -9 tabfs || true killall -9 tabfs || true
diskutil unmount force mnt || true diskutil unmount force mnt || true
fusermount -u mnt || true fusermount -u mnt || true
umount -f mnt || true

View file

@ -479,7 +479,9 @@ int main(int argc, char **argv) {
argv[0], argv[0],
"-f", "-f",
#if !defined(__APPLE__) #if !defined(__APPLE__)
#if !defined(__FreeBSD__)
"-oauto_unmount", "-oauto_unmount",
#endif
#endif #endif
"-odirect_io", "-odirect_io",
getenv("TABFS_MOUNT_DIR"), getenv("TABFS_MOUNT_DIR"),