monitor: report errno on exec() error

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-05 14:37:27 +02:00
parent f5351e2437
commit 00cccc8bd2
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -366,7 +366,7 @@ int lxc_monitord_spawn(const char *lxcpath)
DEBUG("Using pipe file descriptor %d for monitord.", pipefd[1]);
execvp(args[0], args);
ERROR("Failed to exec lxc-monitord.");
SYSERROR("failed to exec lxc-monitord");
exit(EXIT_FAILURE);
}