[Title] use CreateProcess instead of WinExec
authorSon Hyunjun <hj79.son@samsung.com>
Sat, 17 Mar 2012 17:19:53 +0000 (02:19 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Sat, 17 Mar 2012 17:19:53 +0000 (02:19 +0900)
[Type] Bugfix
[Module]
[Priority] Major
[CQ#]
[Redmine#]
[Problem] Booting timing issue
[Cause]
[Solution]

Change-Id: I30983cc32f1441632267e7d1e90c3fa0d4cb0a98

tizen/src/skin/maruskin_client.c

index 2d7345b..e9cc4af 100644 (file)
@@ -86,8 +86,32 @@ static void* run_skin_client(void* arg)
         argv );
 
 #ifdef _WIN32
+#if 0
     WinExec( cmd, SW_SHOW );
 #else
+    {
+        STARTUPINFO sti = { 0 };
+        PROCESS_INFORMATION pi = { 0 };
+         if(!CreateProcess(NULL,
+                          cmd,
+                          NULL,
+                          NULL,
+                          FALSE,
+                          NORMAL_PRIORITY_CLASS,
+                          NULL,
+                          NULL,
+                          &sti,
+                          &pi))
+          {
+          printf("Unable to generate process \n");
+          exit(1);
+        }
+         DWORD rc = WaitForSingleObject(
+                          pi.hProcess, // process handle
+                          INFINITE);
+    }
+#endif
+#else
     if( system(cmd) ) {
 
     }else {