Revision: 9114 http://sourceforge.net/p/playerstage/svn/9114 Author: jpgr87 Date: 2013-01-05 21:28:17 +0000 (Sat, 05 Jan 2013) Log Message: ----------- Fixes for daemonization
The daemonization code is set to only work on UNIX like operating systems, but some of the UNIX specific code was not blocked by #ifdef PLAYER_UNIX causing compilation errors on Windows. Modified Paths: -------------- code/player/trunk/server/server.cc Modified: code/player/trunk/server/server.cc =================================================================== --- code/player/trunk/server/server.cc 2013-01-04 21:37:23 UTC (rev 9113) +++ code/player/trunk/server/server.cc 2013-01-05 21:28:17 UTC (rev 9114) @@ -94,7 +94,7 @@ #include <stdlib.h> #include <signal.h> #include <errno.h> -#if !defined (WIN32) +#if !defined (WIN32) || defined (__MINGW32__) #include <unistd.h> #endif @@ -472,7 +472,7 @@ { PLAYER_ERROR("failed to stop alwayson drivers"); } - +#if PLAYER_UNIX // If we are a daemon, close all open file descriptors (this also unlocks the // lockfile) if(process_is_daemon) @@ -482,7 +482,7 @@ close(fd); } } - +#endif player_globals_fini(); delete cf; } @@ -492,8 +492,10 @@ { switch(signum) { +#if PLAYER_UNIX case SIGHUP: break; +#endif case SIGTERM: default: player_quit = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit