mirror of
https://github.com/rkt/rkt.git
synced 2025-08-06 13:48:46 +08:00

Instead of asking systemd-nspawn to write its "pid" file, rkt can write the parent pid "ppid". Then, update getPID() to get the pid file from /proc/$ppid/task/$ppid/children. In this way, we don't need to patch systemd-nspawn. getPID() is able to read both the "pid" file and the "ppid" file, in order to work with alternative stage1s which choose to implement one or the other method. coreos/rkt#910