lib/daemon-windows.c
/* Returns the file name that would be used for a pidfile if 'name' were
 * provided to set_pidfile().  The caller must free the returned string. */
Returns the file name that would be used for a pidfile if 'name' were
provided to set_pidfile().  The caller must free the returned string.
Returns the file name that would be used for a pidfile if ' name ' were provided to set_pidfile () . The caller must free the returned string .
char *
make_pidfile_name(const char *name)
{
    if (name) {
        if (strchr(name, ':')) {
            return xstrdup(name);
        } else {
            return xasprintf("%s/%s", ovs_rundir(), name);
        }
    } else {
        return xasprintf("%s/%s.pid", ovs_rundir(), program_name);
    }
}
char * make_pidfile_name ( const char * name ) { if ( name ) { if ( strchr ( name , ' ' ) ) { return xstrdup ( name ) ; } else { return xasprintf ( " " , ovs_rundir ( ) , name ) ; } } else { return xasprintf ( " " , ovs_rundir ( ) , program_name ) ; } }
Returns the file name that would be used for a pidfile if 'name' were
 provided to set_pidfile().
Returns the file name that would be used for a pidfile if ' name ' were provided to set_pidfile () .