forked from enlightenment/terminology
options: use ecore_exe_pipe_run() instead of fork+exec
Patch provided by Vincent Torri
This commit is contained in:
parent
7b5a9b74bc
commit
72eaf53e26
|
@ -9,18 +9,10 @@ launch_elm_config(void *_data EINA_UNUSED,
|
||||||
Evas_Object *_obj EINA_UNUSED,
|
Evas_Object *_obj EINA_UNUSED,
|
||||||
void *_event_info EINA_UNUSED)
|
void *_event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
int pid;
|
Ecore_Exe *exe;
|
||||||
|
|
||||||
pid = fork();
|
exe = ecore_exe_pipe_run("elementary_config", ECORE_EXE_NONE, NULL);
|
||||||
if (pid < 0)
|
ecore_exe_free(exe);
|
||||||
{
|
|
||||||
ERR("unable to fork: %s", strerror(errno));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (pid == 0)
|
|
||||||
{
|
|
||||||
execl("/bin/sh", "sh", "-c", "elementary_config", NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue