Re: zic on multi-processor systems
Ken Pizzini <ken@halcyon.com> writes:
if (!itsdir(name)) { /* ** It doesn't seem to exist, so we try to create it. + ** Double check the return. Someone may be one + ** step ahead of us. */ if (mkdir(name, 0755) != 0) { + int sverr = errno; + if (!itsdir(name)) { const char *e = strerror(errno);
You probably mean `sverr' here --------------------------^^^^^ BTW: I would change the if line to if (errno == EEXIST && !itsdir(name)) I've sent the patch as I got it and thought about it only later. Thanks, -- Uli ---------------. drepper@cygnus.com ,-. Rubensstrasse 5 Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------
participants (1)
-
Ulrich Drepper