Skip to content

[fix] use fs.unlinkSync#979

Merged
kibertoad merged 1 commit into
foreversd:masterfrom
BridgeAR:fix-no-callback
Jan 5, 2019
Merged

[fix] use fs.unlinkSync#979
kibertoad merged 1 commit into
foreversd:masterfrom
BridgeAR:fix-no-callback

Conversation

@BridgeAR
Copy link
Copy Markdown
Contributor

@BridgeAR BridgeAR commented Feb 24, 2018

Right now fs.unlink is used without a callback. This would throw
from Node.js 10 on. Therefore switch to the sync version. That way
errors are also going to be detected.

See nodejs/node#18668

Right now fs.unlink is used without a callback. This would throw
from Node.js 10 on. Therefore switch to the sync version. That way
errors are also going to be detected.
@BridgeAR
Copy link
Copy Markdown
Contributor Author

Ping @indexzero

@BridgeAR
Copy link
Copy Markdown
Contributor Author

@BridgeAR
Copy link
Copy Markdown
Contributor Author

Just a note: forever is broken on Node.js 10 without this fix.

@genediazjr @nucleardreamer @indexzero PTAL. This is only a single line and should just be merged.

@BridgeAR
Copy link
Copy Markdown
Contributor Author

PTAL

@kibertoad kibertoad merged commit 1580152 into foreversd:master Jan 5, 2019
@kibertoad
Copy link
Copy Markdown
Contributor

Thanks!

kaypeter87 added a commit to kaypeter87/forever that referenced this pull request Sep 1, 2019
* Execute tests in CI on newer Node.js versions (foreversd#1013)

* Add example for referencing -l -o and -e parameters from within a JSON config file  (foreversd#869)

* [fix] use fs.unlinkSync (foreversd#979)

Right now fs.unlink is used without a callback. This would throw
from Node.js 10 on. Therefore switch to the sync version. That way
errors are also going to be detected.

* Remove dependency on timespan (foreversd#1014)

* Remove dependency on timespan. Add test to ensure that uptime signature didn't change

* Remove redundant description

* Propagate error when failing to create directories on startup (foreversd#1017)

* Update utile to get rid of security warning (foreversd#1022)

* Update utile to get rid of security warning

* Don't use external dependencies from utile

* [doc] Update contributors.

* [dist] Add package-lock.json

* [dist] Version bump. 0.15.4

* [dist] Version bump. 1.0.0

* Update changelog for 1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants