Rafael Szuminski wrote:
> Spoke too soon. Ctrl+z stops the server script but the ruby process that
> listens on 3000 hangs around. After using ctrl+z, I can't restart the 
> server
> because the default port is still in use.

Right -- because C-z only *suspends* the process and does not kill it. 
When you hit C-z, you will see a message that begins like
[1]+ Stopped

The number in brackets is the job number.  To kill the process, type
kill -9 %{JOB}
at the shell prompt, where {JOB} is the job number -- so in this 
example, it would be kill -9 %1 .

I've never seen this with Webrick, but sometimes Autospec responds to 
C-z and not to C-c.  The method I just described is useful.

If any of this is mysterious to you, please read a little about how 
processes work on *nix.

> 
> Raf

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to