forked from enlightenment/efl
* add some todo
* after creating a child process, wait until it is really running SVN revision: 43256
This commit is contained in:
parent
f5fec31eb9
commit
fba68aef80
|
@ -2,6 +2,14 @@
|
||||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO:
|
||||||
|
* - manage priority
|
||||||
|
* - manage I/O pipes
|
||||||
|
* - add events for start/close, maybe others
|
||||||
|
* - manage SetConsoleCtrlHandler ?
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -113,6 +121,10 @@ EAPI Ecore_Exe *ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, c
|
||||||
0, NULL, NULL, &si, &pi))
|
0, NULL, NULL, &si, &pi))
|
||||||
goto free_exe_cmd;
|
goto free_exe_cmd;
|
||||||
|
|
||||||
|
/* be sure that the child process is running */
|
||||||
|
if (WaitForInputIdle(pi.hProcess, INFINITE) != 0)
|
||||||
|
goto free_exe_cmd;
|
||||||
|
|
||||||
exe->thread = pi.hThread;
|
exe->thread = pi.hThread;
|
||||||
exe->process_id = pi.dwProcessId;
|
exe->process_id = pi.dwProcessId;
|
||||||
exe->thread_id = pi.dwThreadId;
|
exe->thread_id = pi.dwThreadId;
|
||||||
|
|
Loading…
Reference in New Issue