commit | 502e42fb560b4c602ddf41b8a86e25539d29ecd0 | [log] [tgz] |
---|---|---|
author | Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> | Mon Jun 30 14:48:23 2014 +0400 |
committer | Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> | Wed Jul 02 11:09:28 2014 +0400 |
tree | 476ef7ae90bcd1da900cf369a04d96fff58b0b2a | |
parent | 07a1033d8baf36bea54006fc545a25d0f61d4afa [diff] |
Implementation of tst_get_unused_pid() There are many testcases which require an unused pid value. tst_get_unused_pid() is the function to address this problem. I also removed tst_get_max_pids() because it's used only in one place (tst_get_free_pids()) and can be subsituted with SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>