diff --git a/bin/server.ts b/bin/server.ts index ef5d94d..b14a7c7 100644 --- a/bin/server.ts +++ b/bin/server.ts @@ -85,7 +85,7 @@ function writePidFile( pid_path: string ): void { fs.writeFileSync( pid_path, process.pid ); - process.on( 'exit', () => fs.unlink( pid_path ) ); + process.on( 'exit', () => fs.unlink( pid_path, () => {} ) ); }