[Sync] Project sync

This commit is contained in:
Antz 2014-10-11 08:28:58 +01:00 committed by Antz
parent f1c9e0f94b
commit 86690df496
22 changed files with 1731 additions and 385 deletions

View file

@ -16,7 +16,10 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* World of Warcraft, and all World of Warcraft or Warcraft art, images,
* and lore are copyrighted by Blizzard Entertainment, Inc.
*/
#include "Config/Config.h"
@ -86,9 +89,12 @@ void startDaemon(uint32_t timeout)
exit(EXIT_FAILURE);
}
freopen("/dev/null", "rt", stdin);
freopen("/dev/null", "wt", stdout);
freopen("/dev/null", "wt", stderr);
if (!freopen("/dev/null", "rt", stdin))
exit(EXIT_FAILURE);
if (!freopen("/dev/null", "wt", stdout))
exit(EXIT_FAILURE);
if (!freopen("/dev/null", "wt", stderr))
exit(EXIT_FAILURE);
}
void stopDaemon()