main: fix execv() usage

This commit is contained in:
Boris Faure 2019-10-14 22:14:32 +02:00
parent 3e40f46f9b
commit cd84ce0a34
1 changed files with 3 additions and 1 deletions

View File

@ -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
{