[Type] Bugfix
[Module]
[Priority] Major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
Change-Id: Ib0b48612abbea0d10e0b2a69e86219a73967fe1b
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 {