[ovs-dev] [daemon 10/10] daemon: Avoid races on pidfile creation.

Ethan Jackson ethan at nicira.com
Sat Apr 2 00:13:19 UTC 2011


> +    /* Rename or link it to the ocrrect name. */
> +    if (overwrite_pidfile) {
> +        if (rename(tmpfile, pidfile) < 0) {
> +            VLOG_FATAL("failed to rename \"%s\" to \"%s\" (%s)",
> +                       tmpfile, pidfile, strerror(errno));
> +        }

typo in the comment.

Looks Good.



More information about the dev mailing list