You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This creates a Promise that never resolves, effectively creating a memory leak. While it does keep the process running, there are better ways to handle this.
// Handle process termination gracefullyconstcleanup=()=>{serverProcess.kill();agentProcess.kill();process.exit(0);};process.on('SIGINT',cleanup);process.on('SIGTERM',cleanup);// If you need to keep the process running, use process.stdin.resume()process.stdin.resume();
The text was updated successfully, but these errors were encountered:
This creates a Promise that never resolves, effectively creating a memory leak. While it does keep the process running, there are better ways to handle this.
The text was updated successfully, but these errors were encountered: