close fd monitor on error

This commit is contained in:
dlezcano 2008-09-03 09:28:50 +00:00
parent c2cc9f0a9b
commit eb2ebe7468

View File

@ -145,6 +145,7 @@ int lxc_monitor_open(const char *name)
if (bind(fd, (const struct sockaddr *)&addr, sizeof(addr))) {
lxc_log_syserror("failed to bind to '%s'", addr.sun_path);
close(fd);
return -1;
}