bin/server.ts: fs.unlink requires two arguments on Node v12
parent
341aeb6a08
commit
de94f69e8f
|
@ -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, () => {} ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue