test: Rename propagating signal handler
nstool in "exec" mode will propagate some signals (specifically SIGTERM) to the process in the namespace it executes. The signal handler which accomplishes this is called simply sig_handler(). However, it turns out we're going to need some other signal handlers, so rename this to the more specific sig_propagate(). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
867db07fcf
commit
b456ee1b53
1 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ static int openns(const char *fmt, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
static pid_t sig_pid;
|
static pid_t sig_pid;
|
||||||
static void sig_handler(int signum)
|
static void sig_propagate(int signum)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ static void sig_handler(int signum)
|
||||||
static void wait_for_child(pid_t pid)
|
static void wait_for_child(pid_t pid)
|
||||||
{
|
{
|
||||||
struct sigaction sa = {
|
struct sigaction sa = {
|
||||||
.sa_handler = sig_handler,
|
.sa_handler = sig_propagate,
|
||||||
.sa_flags = SA_RESETHAND,
|
.sa_flags = SA_RESETHAND,
|
||||||
};
|
};
|
||||||
int status, err;
|
int status, err;
|
||||||
|
|
Loading…
Reference in a new issue