aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db/libthr_db.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-05-17 05:14:45 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-05-17 05:14:45 +0000
commitef39743bc3b37d74df3e85d12d0667103c43b267 (patch)
treea4a4fd8000694ff29392403fb0e6a37efc6d3498 /lib/libthread_db/libthr_db.c
parent2ed66c939032ac9807294eb67a6514bcc8af23d8 (diff)
downloadsrc-ef39743bc3b37d74df3e85d12d0667103c43b267.tar.gz
src-ef39743bc3b37d74df3e85d12d0667103c43b267.zip
Fix return value.
Notes
Notes: svn path=/head/; revision=158681
Diffstat (limited to 'lib/libthread_db/libthr_db.c')
-rw-r--r--lib/libthread_db/libthr_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c
index 0e0940917410..148da1480e03 100644
--- a/lib/libthread_db/libthr_db.c
+++ b/lib/libthread_db/libthr_db.c
@@ -501,7 +501,8 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info)
if (ret == PS_OK) {
info->ti_sigmask = linfo.pl_sigmask;
info->ti_pending = linfo.pl_siglist;
- }
+ } else
+ return (ret);
if (state == ta->thread_state_running)
info->ti_state = TD_THR_RUN;
else if (state == ta->thread_state_zoombie)