Roy's Blog

A Hacker's musings on Code | Tech | Life

So, clang has a static analyser. This effectively builds and does a deep analysis on the resultant binary for possible coding errors such as memory loss, dead code, etc. I've always run dhcpcd using valgrind, a memory debugger which has (and still does!) served me well over the years alongside h...

Continue reading...

dhcpcd has a lot of global variables. For a traditional UNIX environment this makes a lot of sense, when working as a single master daemon or in a daemon per interface model. But for a threaded model, this is very very bad because you then have competing threads wanting the same global resource. It...

Continue reading...