Skip to content
Commit 2875a195 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov
Browse files

pstree: try to find a free pid between busy pids (v2)



Currently our pid allocator returns max_pid++ and it can return a pid
which is bigger than kernel.max_pid.

(00.821430)   5506: Error (cr-restore.c:1540): Pid 300 do not match expected 32768

v2: handle error code from insert_item()
Signed-off-by: default avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 42205175
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment