mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 03:31:36 +00:00
monitor: report errno on exec() error
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
f5351e2437
commit
00cccc8bd2
@ -366,7 +366,7 @@ int lxc_monitord_spawn(const char *lxcpath)
|
|||||||
DEBUG("Using pipe file descriptor %d for monitord.", pipefd[1]);
|
DEBUG("Using pipe file descriptor %d for monitord.", pipefd[1]);
|
||||||
|
|
||||||
execvp(args[0], args);
|
execvp(args[0], args);
|
||||||
ERROR("Failed to exec lxc-monitord.");
|
SYSERROR("failed to exec lxc-monitord");
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user