SUMMARY The man page for kdeinit5 says that killall does not work. I think using prctl(PR_SET_MM) it would be possible to solve this shortcoming. prctl(2) supports PR_SET_MM on Linux 3.3+
kinit is deprecated. Where are you using it?