improved postfork() decorator