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

use fusermount on linux for now

This commit is contained in:
Mathias Buus 2015-03-17 15:35:42 +01:00
parent 07352cfe10
commit 036eac6355

View File

@ -1,6 +1,6 @@
#include <nan.h>
#define FUSE_USE_VERSION 26
#define FUSE_USE_VERSION 29
#include <fuse.h>
#include <semaphore.h>
@ -137,7 +137,10 @@ static void semaphore_signal (dispatch_semaphore_t *sem) {
}
#else
static void bindings_unmount (char *path) {
umount(path);
char *argv[] = {"fusermount", "-q", "-u", path, NULL};
pid_t cpid = vfork();
if (cpid > 0) waitpid(cpid, NULL, 0);
else execvp(argv[0], argv);
}
static int semaphore_init (sem_t *sem) {