Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

fix: make pid file writing work under Node.js 14.x #174

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ var start = function(opts, done) {
},
function(pid, pidPath, cb) {
debug('Writing pid %d to', pid, pidPath);
fs.writeFile(pidPath, pid, cb);
fs.writeFile(pidPath, String(pid), cb);
}
],
done
Expand Down