windows ccapi: launch server without console by default
authorTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:44:36 +0000 (20:44 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:44:36 +0000 (20:44 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25541 dc483132-0cff-0310-8789-dd5450dbe970

src/ccapi/lib/win/OldCC/client.cxx

index ed8712339a5b5fdd9246b10ba3d848943861c4b2..5b82b6587f5987b7051c22fc8cd16d7f4cdf4a30 100644 (file)
@@ -195,12 +195,13 @@ DWORD find_server(Init::InitInfo& info, LPSTR endpoint) {
                                        psa,         // SA
                                        FALSE, 
                                        CREATE_NEW_PROCESS_GROUP | 
-                                       CREATE_NEW_CONSOLE |
                                        NORMAL_PRIORITY_CLASS |
-                                       // CREATE_NO_WINDOW |
-                                       // DETACHED_PROCESS |    /* KPK TODO: was set - restore */
-                                       0
-                                       ,
+#ifdef CCAPI_LAUNCH_SERVER_WITH_CONSOLE
+                                       CREATE_NEW_CONSOLE |
+#else
+                                       DETACHED_PROCESS |
+#endif
+                                       0,
                                        NULL,        // environment
                                        szDir,       // current dir
                                        &si,