commit | 454a2d5db50a2c1af1380239ea48e0ca8f456619 | [log] [tgz] |
---|---|---|
author | Brendan Jackman <brendan.jackman@arm.com> | Mon Nov 28 12:41:41 2016 +0000 |
committer | Brendan Jackman <brendan.jackman@arm.com> | Mon Nov 28 12:41:41 2016 +0000 |
tree | 59e23822edd33bb803e8bb16eff77bd1fe32f707 | |
parent | 78ac92bd841981560c6d0975e7ba3c52bc050b79 [diff] |
shutils/cgroups: Don't fail when racing with process exit If a process is added to $PIDS but then exits before the cgroups_task_move invokation finishes, then echoing its PID to cgroups.procs results in an I/O error. If that process is the last in $PIDS, then that failing echo command is the last of the function, so the script exits with an error and devlib raises an exception. Add `|| true` to avoid this problem.