]> granicus.if.org Git - psmisc/commit
Support running with child namespaces
authorDebabrata Banerjee <dbanerje@akamai.com>
Wed, 22 Feb 2017 19:09:42 +0000 (14:09 -0500)
committerDebabrata Banerjee <dbanerje@akamai.com>
Wed, 22 Mar 2017 22:13:19 +0000 (18:13 -0400)
commit6a2d6173f37e66196d03674adfe80af9e31ee091
tree5e7f9bbcb6af03419db4838b339634ecee6eb910
parenta9e91f3c943820a4cd5913c8d2419ecb81e936a0
Support running with child namespaces

By default killall should not kill processes in a namespace it is not
part of. If this is allowed, it allows callers to break namespaces they
did not expect to affect, requiring rewrite of all callers to fix.

So by default, we should work in the current namespace. If -N 0 is
specified, then we look at all namespaces, and if any other pid is
specified we look in only that namespace.

Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
src/killall.c