diff options
| author | Jeff Garzik <[email protected]> | 2011-08-04 15:22:05 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-08-04 15:22:05 -0400 |
| commit | bd1e54bc0b7f1bdfc571edf1f4f1ecf422260b8c (patch) | |
| tree | b33258e3578815f1c2573d2ec9c757f7f30dc1c0 /src | |
| parent | Merge pull request #448 from sipa/cbitcoinaddress (diff) | |
| parent | Fix UNIX-specific thread handle leak. (diff) | |
| download | discoin-bd1e54bc0b7f1bdfc571edf1f4f1ecf422260b8c.tar.xz discoin-bd1e54bc0b7f1bdfc571edf1f4f1ecf422260b8c.zip | |
Merge branch 'tmp2'
Diffstat (limited to 'src')
| -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 9922ba82a..8588201da 100644 --- a/src/util.h +++ b/src/util.h @@ -623,7 +623,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; } |