[PATCH v2] pid: restore the old behaviour of the ns_last_pid sysctl

2017-11-06 Thread Andrei Vagin
CRIU uses ns_last_pid to fork a process with a specified pid. For example, if we need to create a process with the pid of 1, we write into /proc/sys/kernel/ns_last_pid $ echo > /proc/sys/kernel/ns_last_pid; sh -c 'echo $$' 1 This behaviour has been broken and now if we write

[PATCH v2] pid: restore the old behaviour of the ns_last_pid sysctl

2017-11-06 Thread Andrei Vagin
CRIU uses ns_last_pid to fork a process with a specified pid. For example, if we need to create a process with the pid of 1, we write into /proc/sys/kernel/ns_last_pid $ echo > /proc/sys/kernel/ns_last_pid; sh -c 'echo $$' 1 This behaviour has been broken and now if we write