diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-06 18:45:15 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-06 18:45:15 +0200 |
commit | 330c190958a31a126de7a7b12124070300b1567b (patch) | |
tree | f5a43d970c66709ea15ed44b0b5a7e63f880c82c /src/util.h | |
parent | e74e8a184a70287e1f438e81a7b8ffc2bf09c46d (diff) | |
parent | bd1e54bc0b7f1bdfc571edf1f4f1ecf422260b8c (diff) |
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 7ac36c0f4a..a1e3c263d5 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; } |