commit | d8c0aac9a06e969607d04e8c33b7344921a106f8 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Mon Jun 02 15:01:53 2014 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Mon Jun 02 15:03:06 2014 -0700 |
tree | 7ec6fec74d04b7163b3f2aa2ef0397093af82ed5 | |
parent | 06b70353f60c46c1c7cbd88f8b6b11da95c506d2 [diff] |
vzmigrate: don't run ps if there's no $pid Check that $pid is not empty before running ps. Otherwise we have this: Error: ERROR: CT already locked by PID error: list of process IDs must follow -p Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). Signed-off-by: Kir Kolyshkin <kir@openvz.org>