mirror of
git://github.com/lxc/lxc
synced 2025-08-31 19:37:13 +00:00
close fd on error path
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
@@ -69,6 +69,7 @@ static void lxc_monitor_fifo_send(struct lxc_msg *msg, const char *lxcpath)
|
||||
|
||||
ret = write(fd, msg, sizeof(*msg));
|
||||
if (ret != sizeof(*msg)) {
|
||||
close(fd);
|
||||
SYSERROR("failed to write monitor fifo %s", fifo_path);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user