mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
fix numeric pid during write, null case (#447)
This commit is contained in:
@@ -75,7 +75,7 @@ export default class Worker {
|
||||
// Write pid on a file
|
||||
if (this.config.pidFile) {
|
||||
try {
|
||||
fs.writeFileSync(this.config.pidFile, process.pid.toString());
|
||||
fs.writeFileSync(this.config.pidFile, (process.pid || "").toString());
|
||||
} catch (error) {
|
||||
this.logger.log({
|
||||
level: 'error',
|
||||
|
Reference in New Issue
Block a user