summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-14 22:14:32 +0200
committerBoris Faure <billiob@gmail.com>2019-10-17 09:58:40 +0200
commitcd84ce0a3472d451b6745d0b9919b12e69873ae3 (patch)
tree3a26c23af12f5c92b3d7f791ad1dc95ab6d90707 /src
parent3e40f46f9bce6216997fe188ad04200479db0fc3 (diff)
main: fix execv() usage
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 57e5454..7bd49b6 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -613,7 +613,9 @@ _instance_sleep(void *data)
613 * remove the unix socket and restart terminology from scratch in a 613 * remove the unix socket and restart terminology from scratch in a
614 * better state */ 614 * better state */
615 ipc_instance_conn_free(); 615 ipc_instance_conn_free();
616 execv(add->argv[0], add->argv + 1); 616 errno = 0;
617 execv(add->argv[0], add->argv);
618 ERR("execv failed on '%s': %s", add->argv[0], strerror(errno));
617 } 619 }
618 else 620 else
619 { 621 {