I need to kill my server when my kotlin/js nodes a...
# javascript
a
I need to kill my server when my kotlin/js nodes app dies. I noticed that I don't get a SIGINT callback when I stop running
jsNodeDevelopmentRun
. Is there a way to tell when my node app stops?
Copy code
process.on("SIGINT") { }
The real issue here is that sometimes i try to run my nodejs app (that starts an expressjs server) and it complains how the port i use for the server is already in use. If I kill whatever is running on that port manually
kill -9 $(lsof -t -i:3001)
I can start my app again
a
Oh, it seems like not the thing we expect to have. Could you please fill out an issue ticket for it?