diff options
author | Robert Swiecki <robert@swiecki.net> | 2019-02-17 02:43:27 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2019-02-17 02:43:27 +0100 |
commit | fb787400526aba58c365144ce562553e1d66bc41 (patch) | |
tree | fc27dc1c89a2b45634e2beb472a8ba31daec2be5 /subproc.c | |
parent | acdf0bd9659cf2453dbe7880aa3fe4adeb6e21e3 (diff) | |
download | honggfuzz-fb787400526aba58c365144ce562553e1d66bc41.tar.gz |
subproc: make threads detachable since we're no longer using pthread_join
Diffstat (limited to 'subproc.c')
-rw-r--r-- | subproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -490,7 +490,7 @@ bool subproc_runThread(honggfuzz_t* hfuzz, pthread_t* thread, void* (*thread_fun pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); + pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); pthread_attr_setstacksize(&attr, _HF_PTHREAD_STACKSIZE); pthread_attr_setguardsize(&attr, (size_t)sysconf(_SC_PAGESIZE)); |