Re: [lxc-devel] [PATCH v2] lxc-ls: check for ENOMEM and tweaking

2016-01-15 Thread Christian Brauner
On Sat, Jan 16, 2016 at 12:50:01AM +, Serge Hallyn wrote: > Quoting Christian Brauner (christian.brau...@mailbox.org): > > If lxc_container_new() fails we check for ENOMEM and if so goto out. If > > ENOMEM > > is not set we will simply continue. The same goes for the call to regcomp() > > but

Re: [lxc-devel] [PATCH v2] lxc-ls: check for ENOMEM and tweaking

2016-01-15 Thread Serge Hallyn
Quoting Christian Brauner (christian.brau...@mailbox.org): > If lxc_container_new() fails we check for ENOMEM and if so goto out. If ENOMEM > is not set we will simply continue. The same goes for the call to regcomp() > but > instead of checking for ENOMEM we need to check for REG_ESPACE. > > Twe

[lxc-devel] [PATCH v2] lxc-ls: check for ENOMEM and tweaking

2016-01-15 Thread Christian Brauner
If lxc_container_new() fails we check for ENOMEM and if so goto out. If ENOMEM is not set we will simply continue. The same goes for the call to regcomp() but instead of checking for ENOMEM we need to check for REG_ESPACE. Tweaking: Since lxc-ls might have to gather a lot of containers and I don't