commit | 4bea0b9428130a17724e8f1e56f0049941b1664c | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Sat Mar 05 15:25:34 2011 +0300 |
committer | Kir Kolyshkin <kir@openvz.org> | Sat Mar 05 15:25:34 2011 +0300 |
tree | 0eff513312b6e872de9fb6c32413ac46c1ff6946 | |
parent | 75678d30df68959474ce303db9e63c29b641b6f0 [diff] |
Fix vzctl exit code when not enough memory to parse options Error returned from parse_*_opt() functions (when mod_make_opt() returns NULL because of malloc() failure) goes all the way down to main() and is used as an exit code of vzctl, so using -1 is not the right thing to do. Change -1 to VZ_RESOURCE_ERROR. Signed-off-by: Kir Kolyshkin <kir@openvz.org>