From: Simon Ruderich Date: Tue, 8 Apr 2014 12:38:01 +0000 (+0200) Subject: handle_recursive: fix race condition if threads are used X-Git-Tag: 0.2~6 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b6d1dc09b620742b1877935f9f21a90a13ca5ee1;hp=b6d1dc09b620742b1877935f9f21a90a13ca5ee1;p=coloredstderr%2Fcoloredstderr.git handle_recursive: fix race condition if threads are used Requires thread-local storage. Another solution would be a mutex, but this is slower and more complicated and might cause issues with some programs. ---