The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Vlad Hanging on you?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ryan Davis

Posts: 651
Nickname: zenspider
Registered: Oct, 2004

Ryan Davis is a ruby nerd.
Vlad Hanging on you? Posted: Oct 17, 2007 6:14 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: Vlad Hanging on you?
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby

Advertisement

I just finished writing up a lighttpd plugin for Vlad so I can switch my textdrive projects over. I had a problem where firing up lighttpd would hang. I knew there wasn't any IO it was actually waiting on, it was just hanging...

After googling I found a similar bug regarding capistrano having the same problem and the workaround offered works beautifully!

The solution/workaround is to forcibly detach all IO from the process:

#{web_command} -f #{lighttpd_conf} </dev/null >/dev/null 2>&1

For non-unix geeks, this:

  • merges stdout and stderr (2>&1)
  • redirects stdout to /dev/null
  • redirects/attaches /dev/null to stdin

By doing this, ssh doesn't hang around waiting for more stuff to happen. This is specific to lighttpd, but I'm guessing there are other daemons out there with similar problems.

Read: Vlad Hanging on you?

Topic: EC2 gets new instance types Previous Topic   Next Topic Topic: Automatically merge changes from branch to trunk

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use