tj / serve

Simple command-line file / directory server built with connect - supports stylus, jade, etc
563 stars 70 forks source link

backgrounded serve process stays open when terminal is closed #30

Closed matthewmueller closed 10 years ago

matthewmueller commented 10 years ago

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 10 years ago

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

matthewmueller commented 10 years ago

ahh i gotcha