Re: [gamin] Startup race?



On Fri, Oct 15, 2004 at 06:27:48PM +0200, Egmont Koblinger wrote:
> Hi,
> 
> Playing a bit with the very stupid command line client mentioned in my mail
> in Oct 06, I found this strange behavior:
> 
> When gam_server is not yet running, launcing "./monitor /etc" sometimes
> starts up correctly, but sometimes exits with a "Connection refused"
> message. However, this leaves gam_server running in the background, and a
> subsequent attept to launch "./monitor /etc" always succeeds as long as I
> keep gam_server running. When I kill it, the story starts from the
> beginning.
> 
> Is there maybe a race condition in the code that starts the daemon? I guess
> it fork+exec's gam_server and then tries to connect to it, but sometimes
> gam_server is not yet accepting connections by this time. May this be the
> case?

  strange. Are you on a recent linux system for this ? 
If yes, please bugzilla this, but I don't remember seeing this
and the regression tests basically do this as testgam starts a new
server for ID "test",

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]