Open evanlemke opened 10 months ago
I found a work-around. By adding &
to the end of my command, closing the tab will properly terminate the application.
I wish I could explain why that works, typically &
would make the task run in the background but in this case my dev server runs in the foreground like normal but allows it to properly receive the SIGHUP on terminal exit
ttab 'npm run dev &'
If i start project with ttab, closing the tab warns me that the application will terminate but it doesn't. It remains running and holds on to the port, preventing me from restarting the application
If i start the application with out ttab, closing the tab warns me that the application will terminate and it actually does.
Can you provide any guidance for ensuring that my sub-command does exit?