forked from enlightenment/terminology
main: fix execv() usage
This commit is contained in:
parent
3e40f46f9b
commit
cd84ce0a34
|
@ -613,7 +613,9 @@ _instance_sleep(void *data)
|
|||
* remove the unix socket and restart terminology from scratch in a
|
||||
* better state */
|
||||
ipc_instance_conn_free();
|
||||
execv(add->argv[0], add->argv + 1);
|
||||
errno = 0;
|
||||
execv(add->argv[0], add->argv);
|
||||
ERR("execv failed on '%s': %s", add->argv[0], strerror(errno));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue