[Title] fix push mistask ( CreateProcess in Windows )
authorSon Hyunjun <hj79.son@samsung.com>
Sat, 17 Mar 2012 19:17:07 +0000 (04:17 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Sun, 18 Mar 2012 09:12:50 +0000 (18:12 +0900)
[Type] Bugfix
[Module]
[Priority] Major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]

Change-Id: Ib0b48612abbea0d10e0b2a69e86219a73967fe1b

Change-ID: I00d5788b03f6970c08840a1f4ceab155f7fca4f8

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 {