fix EXECPATH_FD premature close
This commit is contained in:
parent
e81e798cfe
commit
054ea5282e
@ -240,7 +240,7 @@
|
||||
+ (function () {
|
||||
+ var fd = fs.openSync(process.execPath, 'r');
|
||||
+ var result = readPrelude(fd);
|
||||
+ if (!result || result.undoPatch) {
|
||||
+ if (result && result.undoPatch) {
|
||||
+ fs.closeSync(fd);
|
||||
+ // need to revert patch to node/lib/module.js
|
||||
+ var bindingFs = process.binding('fs');
|
||||
|
||||
@ -301,7 +301,7 @@
|
||||
+ (function () {
|
||||
+ var fd = fs.openSync(process.execPath, 'r');
|
||||
+ var result = readPrelude(fd);
|
||||
+ if (!result || result.undoPatch) {
|
||||
+ if (result && result.undoPatch) {
|
||||
+ fs.closeSync(fd);
|
||||
+ // need to revert patch to node/lib/module.js
|
||||
+ var bindingFs = process.binding('fs');
|
||||
|
||||
@ -198,7 +198,7 @@
|
||||
+ (function () {
|
||||
+ var fd = fs.openSync(process.execPath, 'r');
|
||||
+ var result = readPrelude(fd);
|
||||
+ if (!result || result.undoPatch) {
|
||||
+ if (result && result.undoPatch) {
|
||||
+ fs.closeSync(fd);
|
||||
+ // need to revert patch to node/lib/module.js
|
||||
+ var bindingFs = process.binding('fs');
|
||||
|
||||
@ -212,7 +212,7 @@
|
||||
+ (function () {
|
||||
+ var fd = fs.openSync(process.execPath, 'r');
|
||||
+ var result = readPrelude(fd);
|
||||
+ if (!result || result.undoPatch) {
|
||||
+ if (result && result.undoPatch) {
|
||||
+ fs.closeSync(fd);
|
||||
+ // need to revert patch to node/lib/module.js
|
||||
+ var bindingFs = process.binding('fs');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user