Stopping and restarting processes
Stop a process in its existing terminal before restarting it so you do not leave duplicate servers, workers, or watchers behind.
On this page2

Steps
- Select the terminal tab that owns the running process.
- Send Ctrl+C and wait for the process to return to a shell prompt.
- Check for a clean shutdown or release of the expected port.
- Fix any configuration, then rerun the command in the same tab.
Expected result
Only one intended process is running, and its new output starts from a known terminal state.
Note: If Ctrl+C is ignored, inspect the process before using a stronger stop; closing the tab kills that shell and can discard useful output.