Re: [lxc-devel] Question on freezer.c

2010-10-11 Thread richard -rw- weinberger
On Mon, Oct 11, 2010 at 9:42 AM, Daniel Lezcano wrote: > On 10/11/2010 08:48 AM, richard -rw- weinberger wrote: >> >> Hi list, >> >> I've a question on freezer.c. >> In freeze_unfreeze() is a while(1) loop which write()s "FROZEN" or >> "THAWED" until read() returns the same. >> Why do we need this

Re: [lxc-devel] Question on freezer.c

2010-10-11 Thread Daniel Lezcano
On 10/11/2010 09:42 AM, Daniel Lezcano wrote: > On 10/11/2010 08:48 AM, richard -rw- weinberger wrote: > >> Hi list, >> >> I've a question on freezer.c. >> In freeze_unfreeze() is a while(1) loop which write()s "FROZEN" or >> "THAWED" until read() returns the same. >> Why do we need this loop?

Re: [lxc-devel] Question on freezer.c

2010-10-11 Thread Daniel Lezcano
On 10/11/2010 08:48 AM, richard -rw- weinberger wrote: > Hi list, > > I've a question on freezer.c. > In freeze_unfreeze() is a while(1) loop which write()s "FROZEN" or > "THAWED" until read() returns the same. > Why do we need this loop? > It looks like a hack to me. The freezer documentation sp