fuse-bindings
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -58,6 +58,9 @@ var fuse = require('./') | ||
process.on('SIGINT', function () { | ||
fuse.unmount(mountPath, function () { | ||
console.log('filesystem at ' + mountPath + ' unmounted') | ||
process.exit() | ||
fuse.unmount(mountPath, function (err) { | ||
if (err) { | ||
console.log('filesystem at ' + mountPath + ' not unmounted', err) | ||
} else { | ||
console.log('filesystem at ' + mountPath + ' unmounted') | ||
} | ||
}) | ||
}) |
11
index.js
@@ -93,12 +93,3 @@ var bindings = require('bindings') | ||
exports.unmount = function (mnt, cb) { | ||
var timeout = setTimeout(function () { | ||
var err = new Error('Unmount took too long') | ||
err.code = 'ETIMEDOUT' | ||
if (cb) cb(err) | ||
}, 2000) | ||
fuse.unmount(path.resolve(mnt), function (err) { | ||
clearTimeout(timeout) | ||
if (cb) cb(err) | ||
}) | ||
fuse.unmount(path.resolve(mnt), cb) | ||
} | ||
@@ -105,0 +96,0 @@ |
{ | ||
"name": "fuse-bindings", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "Fully maintained fuse bindings for Node that aims to cover the entire FUSE api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,5 @@ # fuse-bindings | ||
* On Linux/Ubuntu `sudo apt-get install libfuse-dev` | ||
* On OSX install [OSXFuse](http://osxfuse.github.com/) and pkg-config, `brew install pkg-config` | ||
* On OSX | ||
* if you use Brew, install [OSXFuse](http://osxfuse.github.com/) and `brew install pkg-config` | ||
* if you use MacPorts, `sudo port install osxfuse +devel` | ||
* On Windows see `Windows` down below... | ||
@@ -20,0 +22,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71419
470
483