Fix compile warnings

Todo: error checking for DTSC::File::getHeader
This commit is contained in:
Peter Wu 2012-08-30 11:16:49 +02:00
parent c404624774
commit f11ce43887
2 changed files with 11 additions and 2 deletions

View file

@ -341,5 +341,9 @@ void Util::Daemonize(){
#if DEBUG >= 3
fprintf(stderr, "Going into background mode...\n");
#endif
daemon(1, 0);
if (daemon(1, 0) < 0) {
#if DEBUG >= 1
fprintf(stderr, "Failed to daemonize: %s\n", strerror(errno));
#endif
}
}