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

2013-04-15 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. > > Signed-off-by: Dwight Engen Acke

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

2013-04-15 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. Signed-off-by: Dwight Engen --- src/lxc/conf.c | 11 ++- 1 file changed, 10 insert