X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flxc%2Fstart.c;h=1a6046c7a40d8b4bb3aebcf521545b3fce7db355;hb=a585382b972c25ee8489147d94918d001ef439a7;hp=8f7173ec8cea6af0d098f10ddf59085a14bc892d;hpb=8dff29c6c7885222ed11217a2b9c0a50ae7cea64;p=mirror_lxc.git diff --git a/src/lxc/start.c b/src/lxc/start.c index 8f7173ec8..1a6046c7a 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -629,7 +629,8 @@ int lxc_poll(const char *name, struct lxc_handler *handler) TRACE("Mainloop is ready"); ret = lxc_mainloop(&descr, -1); - close_prot_errno_disarm(descr.epfd); + if (descr.type == LXC_MAINLOOP_EPOLL) + close_prot_errno_disarm(descr.epfd); if (ret < 0 || !handler->init_died) goto out_mainloop_console;