start-stop-daemon: remove redundant test of the quiet value
The einfo() function tests for the EINFO_QUIET environment variable directly, and this is the variable that is set by the --quiet flag, so there was no reason for this test to exist.
This commit is contained in:
		| @@ -355,8 +355,7 @@ do_stop(const char *exec, const char *const *argv, | |||||||
|  |  | ||||||
| 	LIST_FOREACH_SAFE(pi, pids, entries, np) { | 	LIST_FOREACH_SAFE(pi, pids, entries, np) { | ||||||
| 		if (test) { | 		if (test) { | ||||||
| 			if (!quiet) | 			einfo("Would send signal %d to PID %d", sig, pi->pid); | ||||||
| 				einfo("Would send signal %d to PID %d", sig, pi->pid); |  | ||||||
| 			nkilled++; | 			nkilled++; | ||||||
| 		} else { | 		} else { | ||||||
| 			if (verbose) | 			if (verbose) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user