diff options
Diffstat (limited to 'nptl_db/td_ta_event_getmsg.c')
-rw-r--r-- | nptl_db/td_ta_event_getmsg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl_db/td_ta_event_getmsg.c b/nptl_db/td_ta_event_getmsg.c index 6e68ff4ff2..258b4fba14 100644 --- a/nptl_db/td_ta_event_getmsg.c +++ b/nptl_db/td_ta_event_getmsg.c @@ -1,5 +1,5 @@ /* Retrieve event. - Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 1999,2001,2002,2003,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 1999. @@ -43,6 +43,10 @@ td_ta_event_getmsg (const td_thragent_t *ta_arg, td_event_msg_t *msg) if (! ta_ok (ta)) return TD_BADTA; + err = _td_ta_check_nptl (ta); + if (err != TD_OK) + return err; + /* Get the pointer to the thread descriptor with the last event. */ err = DB_GET_VALUE (thp, ta, __nptl_last_event, 0); if (err != TD_OK) |