diff --git a/test/nstool.c b/test/nstool.c index 8f66c98..20fcc4c 100644 --- a/test/nstool.c +++ b/test/nstool.c @@ -4,20 +4,6 @@ * * Copyright Red Hat * Author: David Gibson - * - * Can run in 3 modes: - * - * nstool hold - * Designed to be run inside a namespace, opens a Unix domain - * control socket at and waits until instructed to stop - * with "nstool stop " - * nstool pid - * Prints the PID of the nstool hold process with control socket - * . This is given in the PID namespace where nstool pid - * is executed, not the one where nstool hold is running - * nstool stop - * Instruct the nstool hold with control socket at to - * exit. */ #define _GNU_SOURCE @@ -38,7 +24,17 @@ static void usage(void) { - die("Usage: nstool hold|pid|stop \n"); + die("Usage:\n" + " nstool hold SOCK\n" + " Run within a set of namespaces, open a Unix domain socket\n" + " (the \"control socket\") at SOCK and wait for requests from\n" + " other nstool subcommands.\n" + " nstool pid SOCK\n" + " Print the pid of the nstool hold process with control socket\n" + " at SOCK, as seen in the caller's namespace.\n" + " nstool stop SOCK\n" + " Instruct the nstool hold with control socket at SOCK to\n" + " terminate.\n"); } static void hold(int fd, const struct sockaddr_un *addr)