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