Hi, This is a set of improvements for process management in toaster script. It includes a bit of cleanup (first 2 patches) and quite serious changes in the way toaster script starts and stops runbuild and runserver processes: - usage of process groups (PGID) instead of PID - usage of pid namespaces http://man7.org/linux/man-pages/man7/pid_namespaces.7.html
Both changes should hopefully make toaster to stop running processes more reliably. One side effect and a partial reason of this work: it should fix #7973: stopping toaster kills ALL django apps running on the machine. Testing instructions: - run toaster - run build in Toaster UI - wait until you see a lot of build-related processes in 'ps x' output - stop toaster. expected outcome: no toaster or build-related processes in 'ps x' output The following changes since commit 34ccad16d40ec0685f405b8d7116250fb58e323d: buildinfohelper: discover kernel artifacts correctly (2016-08-23 14:29:32 +0300) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/toaster/kill-toaster-pid-namespace-7973 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/kill-toaster-pid-namespace-7973 Ed Bartosh (4): toaster: don't kill toaster on start toaster: remove handling of .toasterui.pid toaster: use process group id to kill processes toaster: run builds in pid namespace bitbake/bin/toaster | 48 ++++++++++++++++-------------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) -- Regards, Ed -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
