ruhoh / ruhoh.rb

http://ruhoh.com
616 stars 69 forks source link

can not stop service server #273

Open zendzo opened 10 years ago

zendzo commented 10 years ago

after i run this command on my terminal bundle exec ruhoh server 9292

i can't not terminate with ctrl+c

Stebalien commented 10 years ago

I can't reproduce. What's your OS, distro, terminal emulator, shell, etc...

zendzo commented 10 years ago

i use windows 7 and git terminal

Stebalien commented 10 years ago

Just to be absolutely sure, what's the output of echo $SHELL. However, it might just not work under the standard windows terminal emulator. You might need to run some other terminal emulator (rxvt, console2, etc.).

daviesjamie commented 10 years ago

I've also experienced this problem. If I try to CTRL + C out of the server before the server has dumped the initialisation information, it will hang and require a manual kill of the process.

$ bundle exec ruhoh server 9292
Using theme: "theme-jamie"
=> Start watching: /Users/jamie/Code/jamiedavies.me
# Ctrl + C here before the rest of the information is displayed will cause a hang
[2014-02-11 22:23:04] INFO  WEBrick 1.3.1
[2014-02-11 22:23:04] INFO  ruby 2.1.0 (2013-12-25) [x86_64-darwin13.0]
[2014-02-11 22:23:04] INFO  WEBrick::HTTPServer#start: pid=31664 port=9292
# Ctrl + C here will exit normally

I'm using OS X 10.9, with Fish shell inside iTerm 2.