Update: dup2 when have log_file