Commit f298ee50 by Stéphane Graber

utmp.h: Don't fail when utmpx.h isn't present

Following a comment on the mailing-list, I made utmp.h return -1 when it's disabled, the problem with that is that it prevents the container from starting completely, which isn't quite what I wanted. This change makes the function succeed, the container will therefore start but without utmp handler. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent cbec0030
...@@ -32,6 +32,6 @@ int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr, ...@@ -32,6 +32,6 @@ int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr,
#else #else
static inline int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr, static inline int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr,
struct lxc_handler *handler) { struct lxc_handler *handler) {
return -1; return 0;
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment