]> git.e2factory.org Git - e2factory.git/commit
e2lib: add children_.. functions to track and terminate sub processes
authorTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 10:27:04 +0000 (11:27 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 10:59:48 +0000 (11:59 +0100)
commitc7d6d7fd3c3f2e700dffabe324bdef2371ff5ef5
treee2d378863fcf0c4470a54d6fe8147f50571d8663
parent376b5e18a554c8d4b607a21c0973ffa3b786a056
e2lib: add children_.. functions to track and terminate sub processes

If a child process has an associated pseudo terminal, it's terminated
via TIOCSIG ioctl, otherwise the standard kill() function is used.

Allows us to interrupt root-owned children (eg e2-su, sudo, ...)

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua