summaryrefslogtreecommitdiff
path: root/procps/kill.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-04-12 15:48:19 +0200
committerDenys Vlasenko2017-04-12 15:48:19 +0200
commitd9eb40c18519d10aac3b3d008aa7e338ae830b72 (patch)
treecffe3867dedefadb361ec6cbd507e9f967e36e90 /procps/kill.c
parent0cecbe7d5de237a6c699c67ae53ae2e2481eff43 (diff)
downloadbusybox-d9eb40c18519d10aac3b3d008aa7e338ae830b72.zip
busybox-d9eb40c18519d10aac3b3d008aa7e338ae830b72.tar.gz
fix errors found with make_single_applets.sh
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/kill.c')
-rw-r--r--procps/kill.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 7ae5bee..975a3e8 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -201,7 +201,7 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
pid_t sid;
procps_status_t* p = NULL;
/* compat: exitcode 2 is "no one was signaled" */
- int ret = 2;
+ errors = 2;
/* Find out our session id */
sid = getsid(pid);
@@ -229,7 +229,7 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
arg = *args++;
if (arg[0] != '-' || arg[1] != 'o') {
bb_error_msg("bad option '%s'", arg);
- ret = 1;
+ errors = 1;
goto resume;
}
arg += 2;
@@ -238,21 +238,21 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
omit = bb_strtoi(arg, NULL, 10);
if (errno) {
bb_error_msg("invalid number '%s'", arg);
- ret = 1;
+ errors = 1;
goto resume;
}
if (p->pid == omit)
goto dont_kill;
}
kill(p->pid, signo);
- ret = 0;
+ errors = 0;
dont_kill: ;
}
resume:
/* And let them continue */
if (signo != SIGSTOP && signo != SIGCONT)
kill(-1, SIGCONT);
- return ret;
+ return errors;
}
#if ENABLE_KILL || ENABLE_KILLALL