Re: [gamin] gamin abstract socket bind() probem
- From: John McCutchan <ttb tentacle dhs org>
- To: veillard redhat com
- Cc: gamin-list gnome org
- Subject: Re: [gamin] gamin abstract socket bind() probem
- Date: Wed, 04 Aug 2004 08:45:52 -0400
On Tue, 2004-08-03 at 08:38, Daniel Veillard wrote:
> I have been looking at this (starting gnome-session in an xterm + twm
> environemnt has some fun :-), we cannot avoid the race, this would require
> to make some locking (and I don't want to rely on this unless I really
> don't have any other way). There is really no hard constraint in all that
> code and the kernel garantees there is only one server running (per user/
> session id), and even that could be relaxed without semantic breakage.
> The related code is in gamin_connect_unix_socket() in gam_api.c
> even if another process concurrently forked a gam_server between the time
> of the connect() and when it actually started this should not fail. Somehow
> I rather think it's the timeout which is too low, I'm gonna increase the
> value and change the retry code to always retry from the start by closing the
> fd and reinitializing the socket, just in case.
With your changes in todays CVS the problem still happens.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]