1 |
commit: 5c3e5d801b7ea536f6ea4a993076965c978f0e81 |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 26 22:09:18 2013 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 26 22:09:18 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5c3e5d80 |
7 |
|
8 |
start-stop-daemon: remove redundant test of the quiet value |
9 |
|
10 |
The einfo() function tests for the EINFO_QUIET environment variable |
11 |
directly, and this is the variable that is set by the --quiet flag, so |
12 |
there was no reason for this test to exist. |
13 |
|
14 |
--- |
15 |
src/rc/start-stop-daemon.c | 3 +-- |
16 |
1 file changed, 1 insertion(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c |
19 |
index 4b9fcdd..ca40da6 100644 |
20 |
--- a/src/rc/start-stop-daemon.c |
21 |
+++ b/src/rc/start-stop-daemon.c |
22 |
@@ -355,8 +355,7 @@ do_stop(const char *exec, const char *const *argv, |
23 |
|
24 |
LIST_FOREACH_SAFE(pi, pids, entries, np) { |
25 |
if (test) { |
26 |
- if (!quiet) |
27 |
- einfo("Would send signal %d to PID %d", sig, pi->pid); |
28 |
+ einfo("Would send signal %d to PID %d", sig, pi->pid); |
29 |
nkilled++; |
30 |
} else { |
31 |
if (verbose) |