Update renderdoccmd for new remote server code, add daemonise for server

This commit is contained in:
baldurk
2016-08-03 16:29:34 +02:00
parent 4fde9b065f
commit f8b3fd3e1e
6 changed files with 48 additions and 12 deletions
+7
View File
@@ -38,6 +38,12 @@
using std::string;
void Daemonise()
{
// don't change dir, but close stdin/stdou
daemon(1, 0);
}
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height)
{
@@ -214,6 +220,7 @@ int main(int argc, char *argv[])
glXWaitGL();
signal(SIGINT, sig_handler);
signal(SIGTERM, sig_handler);
// do any linux-specific setup here