On Tue, 2004-02-10 at 10:42, Ketil Froyn wrote:
> On Tue, 10 Feb 2004, Ketil Froyn wrote:
> 
> > Hey, I actually thought that did
> >
> > mkdir /service/NAME
> > mkdir /service/NAME/log
> >
> > but it doesn't! Nice one! :)
> 
> Hmm, seems my eyesight is getting worse by the minute.
> 
> $ strace mkdir -p a/b/c 2>&1 | grep dir | tail -5
> mkdir("a", 0775)                        = 0
> chdir("a")                              = 0
> mkdir("b", 0775)                        = 0
> fchdir(3)                               = 0
> mkdir("a/b/c", 0777)                    = 0
> 
> So mkdir -p doesn't help.

well it's certainly faster than typing both commands ;)

a race condition still exists, but the likelyhood is far lower.  Just
another reason you shouldn't put them directly into /service ;)

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.....................
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE

Reply via email to