sinatra/sinatra — Issue #434: Cannot kill Sinatra with Ctrl-C
Author: lsiden
Created: 2011-12-25 17:17:15+00:00
State: open

Yes, it's true!

After starting Sinatra from my console, then stopping with ctrl-C:

$ ruby lib/server.rb
== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4567, CTRL+C to stop
^C>> Stopping ...

== Sinatra has ended his set (crowd applauds)

Then,

$ ps -ef |grep ruby
lsiden 19447 1 1 12:02 ? 00:00:05 ruby lib/server.rb -p 5000

From this point on, if I want to restart my webapp, I have to issue a "kill" command to the process id.