lib/process.c
/* Creates and returns a new struct process with the specified 'name' and
 * 'pid'. */
Creates and returns a new struct process with the specified 'name' and
'pid'.
Creates and returns a new struct process with the specified ' name ' and ' pid ' .
static struct process *
process_register(const char *name, pid_t pid)
{
    struct process *p;
    const char *slash;
    p = xzalloc(sizeof *p);
    p->pid = pid;
    slash = strrchr(name, '/');
    p->name = xstrdup(slash ? slash + 1 : name);
    p->exited = false;
    ovs_list_push_back(&all_processes, &p->node);
    return p;
}
static struct process * process_register ( const char * name , pid_t pid ) { struct process * p ; const char * slash ; p = xzalloc ( sizeof * p ) ; p -> pid = pid ; slash = strrchr ( name , ' ' ) ; p -> name = xstrdup ( slash ? slash + 1 : name ) ; p -> exited = false ; ovs_list_push_back ( & all_processes , & p -> node ) ; return p ; }
Creates and returns a new struct process with the specified 'name' and
 'pid'.
Creates and returns a new struct process with the specified ' name ' and ' pid ' .