[sheepdog] [PATCH] sheep: bind TCP ports as soon as possible

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Apr 1 03:24:58 CEST 2013

At Mon, 01 Apr 2013 09:43:08 +0900,
MORITA Kazutaka wrote:
> At Mon,  1 Apr 2013 01:23:58 +0900,
> Hitoshi Mitake wrote:
> > 
> > Current binding of TCP ports is done after some parts of
> > initialization e.g. log_init(). Because of this behaviour, confusing
> > logs can be created. These logs would contain interleaving messages
> > from different sheep processes (e.g. sudden "failed to bind server
> > socket: Address already in use").
> I think lock_base_dir() should guard it.  Do you know why it doesn't
> work?

The patch is a little bit overkill. As you say, lock_base_dir() should
do it. But it seems that the function doesn't work well. I'll seek the


More information about the sheepdog mailing list