tj/serve

backgrounded serve process stays open when terminal is closed

Closed this issue · 2 comments

not actually sure if this is my OS or serve, but I'm not sure if you've noticed but here are the steps:

  1. Close the terminal window while a background serve process is running.
  2. Go to the address of that background process. It should open back up again
  3. Reload the page. The background process should shutdown.

This is annoying because it doesn't allow you to reclaim ports right away.

tj commented

yea that's just the shell, some send HUP on exit but I think that varies from shell to shell (I've never noticed bash send it), so you'll have to fg or kill it some other way

ahh i gotcha