aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2011-08-06 18:45:15 +0200
committerWladimir J. van der Laan <[email protected]>2011-08-06 18:45:15 +0200
commit330c190958a31a126de7a7b12124070300b1567b (patch)
treef5a43d970c66709ea15ed44b0b5a7e63f880c82c /src/util.h
parentreorganize transaction model data function, and transaction tooltip (diff)
parentMerge branch 'tmp2' (diff)
downloaddiscoin-330c190958a31a126de7a7b12124070300b1567b.tar.xz
discoin-330c190958a31a126de7a7b12124070300b1567b.zip
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 7ac36c0f4..a1e3c263d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -621,7 +621,10 @@ inline pthread_t CreateThread(void(*pfn)(void*), void* parg, bool fWantHandle=fa
return (pthread_t)0;
}
if (!fWantHandle)
+ {
+ pthread_detach(hthread);
return (pthread_t)-1;
+ }
return hthread;
}