Changeset b41a358 in rtems-libbsd


Ignore:
Timestamp:
Apr 27, 2012, 7:38:25 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
a4d8e19
Parents:
b95c989
git-author:
Sebastian Huber <sebastian.huber@…> (04/27/12 07:38:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/10/12 14:20:41)
Message:

Fix ucred reference counting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-thread.c

    rb95c989 rb41a358  
    5050
    5151/* FIXME: What to do with the credentials? */
    52 static struct ucred FIXME_ucred;
     52static struct ucred FIXME_ucred = {
     53  .cr_ref = 1
     54};
    5355
    5456static int
     
    106108                td->td_id = id;
    107109                vsnprintf(td->td_name, sizeof(td->td_name), fmt, ap);
    108                 td->td_ucred = &FIXME_ucred;
     110                td->td_ucred = crhold(&FIXME_ucred);
    109111
    110112                rtems_chain_append(&rtems_bsd_thread_chain, &td->td_node);
Note: See TracChangeset for help on using the changeset viewer.