check exit code of freopen to avoid compiler warning
check exit code of freopen to avoid compiler warning

mongrel2/mongrel2,mongrel2/mongrel2,mongrel2/mongrel2,mongrel2/mongrel2,mongrel2/mongrel2,mongrel2/mongrel2