Re: [lxc-devel] [PATCH] fix checking hook script exit code

2013-04-12 Thread Dwight Engen
On Fri, 12 Apr 2013 17:32:49 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > On Fri, 12 Apr 2013 15:36:03 -0500 > > Serge Hallyn wrote: > > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > pclose returns the exit status from wait, we need to check th

Re: [lxc-devel] [PATCH] fix checking hook script exit code

2013-04-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Fri, 12 Apr 2013 15:36:03 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > pclose returns the exit status from wait, we need to check that to > > > see if the script itself failed or not. Tested a script t

Re: [lxc-devel] [PATCH] fix checking hook script exit code

2013-04-12 Thread Dwight Engen
On Fri, 12 Apr 2013 15:36:03 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > pclose returns the exit status from wait, we need to check that to > > see if the script itself failed or not. Tested a script that > > returned 0, 1, and also one that did a sleep and the

Re: [lxc-devel] [PATCH] fix checking hook script exit code

2013-04-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > pclose returns the exit status from wait, we need to check that to see if > the script itself failed or not. Tested a script that returned 0, 1, and > also one that did a sleep and then was killed by a signal (abnormal > termination). > > Signed-of

[lxc-devel] [PATCH] fix checking hook script exit code

2013-04-12 Thread Dwight Engen
pclose returns the exit status from wait, we need to check that to see if the script itself failed or not. Tested a script that returned 0, 1, and also one that did a sleep and then was killed by a signal (abnormal termination). Signed-off-by: Dwight Engen --- src/lxc/conf.c | 7 +-- 1 file