diff options
Diffstat (limited to 'nptl_db/td_thr_event_enable.c')
-rw-r--r-- | nptl_db/td_thr_event_enable.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl_db/td_thr_event_enable.c b/nptl_db/td_thr_event_enable.c index c8b2cd463d..c6b1e794b7 100644 --- a/nptl_db/td_thr_event_enable.c +++ b/nptl_db/td_thr_event_enable.c @@ -1,5 +1,5 @@ /* Enable event process-wide. - Copyright (C) 1999, 2001, 2002, 2003, 2007 Free Software Foundation, Inc. + Copyright (C) 1999,2001,2002,2003,2007,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 1999. @@ -28,6 +28,10 @@ td_thr_event_enable (th, onoff) { LOG ("td_thr_event_enable"); + td_err_e err = _td_ta_check_nptl (th->th_ta_p); + if (err != TD_OK) + return err; + if (th->th_unique != 0) { /* Write the new value into the thread data structure. */ |