1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00
Commit Graph

8 Commits

Author SHA1 Message Date
Jan Kühle
8769284245 Fix possible deadlock because of never unlocked mutex during failed unmount (#31)
* Fix possible deadlock because of never unlocked mutex during failed unmount.

* Fix segmentation fault after unmounting.

Scenario:
1. Mount path /a
2. Mount path /b
3. Unmount path /b
4. Appempt to read from path /a will throw segmentation fault.

Reason:
The function bindings_alloc correctly allocates memory and sets the index property of the binding. Afterwards the mount function does memset again for the binding and resets the index to zero. Unmounting will now always NULL the binding at position zero. However the actual binding on position zero is still mounted and the next access to it results in segmentation fault.
2016-10-17 13:50:38 +02:00
Raymond Hammarling
cad433382d use getenv() instead of node -e stuff 2015-08-07 20:39:18 +02:00
Raymond Hammarling
75b3867bac altered bindings.gyp to use DOKAN_INSTALL_DIR env var 2015-08-07 20:24:07 +02:00
Raymond Hammarling
13fc745c1f Use abstr_thread_t instead of thread_t for thread typedef 2015-08-07 03:51:38 +02:00
Raymond Hammarling
b8a3e44d47 added Windows instructions to readme 2015-08-07 02:25:01 +02:00
Raymond Hammarling
89f657fbda invoke dokanctl.exe to unmount paths on Windows 2015-08-07 00:46:14 +02:00
Raymond Hammarling
4aa5a3da3a added Windows abstractions + dokany (still wip)
dokany found at `dokan-dev/dokany`
2015-08-06 21:33:27 +02:00
Raymond Hammarling
7a87f2cea2 abstract threads, mutexes 2015-08-06 19:28:38 +02:00