Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created March 21, 2014 18:32
Show Gist options
  • Save Raynos/9692748 to your computer and use it in GitHub Desktop.
Save Raynos/9692748 to your computer and use it in GitHub Desktop.
var _fs = process.binding('fs');
var _close = _fs.close
_fs.close = function (fd, cb) {
console.log('closing', fd, new Error().stack)
_close.call(_fs, fd, cb)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment