Don't run the server in detached state

This commit is contained in:
Chocobozzz
2023-05-15 14:02:13 +02:00
parent 8eb6a9eb2b
commit 18a2164366

View File

@@ -250,7 +250,7 @@ export class PeerTubeServer {
const forkOptions = {
silent: true,
env,
detached: true,
detached: false,
execArgv
}
@@ -317,7 +317,7 @@ export class PeerTubeServer {
kill () {
if (!this.app) return Promise.resolve()
process.kill(-this.app.pid)
process.kill(this.app.pid)
this.app = null