Patch attached. Applies against latest git.

2010/5/20 Daniel Lezcano <daniel.lezc...@free.fr>

> On 05/19/2010 11:07 PM, Denis Rizaev wrote:
> > I did a little investigation about runlevels and i think we can assume
> > runlevels 2-5 as normal.
> > So, we can check if system was in runlevel 2-5 and proc count is 1 and
> now
> > we are in 0/6.
> > I can prepare patch tomorrow if you agree with my idea.
>
> Definitively yes, I agree :)
>
>
diff --git a/src/lxc/utmp.c b/src/lxc/utmp.c
index 9b79656..319a5ce 100644
--- a/src/lxc/utmp.c
+++ b/src/lxc/utmp.c
@@ -83,7 +83,7 @@ static int utmp_handler(int fd, void *data, struct lxc_epoll_descr *descr)
                goto out;
        }
 
-       if (ntasks == 1 && prevrun_level == '3') {
+       if (ntasks == 1 && prevrun_level > '1' && prevrun_level < '6') {
 
                DEBUG("run level is %c/%c", prevrun_level, currun_level);
                DEBUG("there is %d tasks remaining", ntasks);
------------------------------------------------------------------------------

_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to