nstool: Fix some trivial typos
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
a628cb93a7
commit
5ca61c2f34
1 changed files with 2 additions and 2 deletions
|
@ -359,7 +359,7 @@ static void wait_for_child(pid_t pid)
|
||||||
if (rc != pid)
|
if (rc != pid)
|
||||||
die("waitpid() on %d returned %d", pid, rc);
|
die("waitpid() on %d returned %d", pid, rc);
|
||||||
if (WIFSTOPPED(status)) {
|
if (WIFSTOPPED(status)) {
|
||||||
/* Stop the parent to patch */
|
/* Stop the parent to match */
|
||||||
kill(getpid(), SIGSTOP);
|
kill(getpid(), SIGSTOP);
|
||||||
/* We must have resumed, resume the child */
|
/* We must have resumed, resume the child */
|
||||||
kill(pid, SIGCONT);
|
kill(pid, SIGCONT);
|
||||||
|
@ -508,7 +508,7 @@ static void cmd_exec(int argc, char *argv[])
|
||||||
/* CHILD */
|
/* CHILD */
|
||||||
if (argc > optind + 1) {
|
if (argc > optind + 1) {
|
||||||
exe = argv[optind + 1];
|
exe = argv[optind + 1];
|
||||||
xargs = (const char * const*)(argv + optind + 1);
|
xargs = (const char *const *)(argv + optind + 1);
|
||||||
} else {
|
} else {
|
||||||
exe = getenv("SHELL");
|
exe = getenv("SHELL");
|
||||||
if (!exe)
|
if (!exe)
|
||||||
|
|
Loading…
Reference in a new issue