[PATCH] log: setlogmask(0) can actually result in a system call, don't use it