Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Fri, 04 Oct 2013 16:23:12
Message-Id: 1380578125.56d592866c7734c42c0b2c0a41376e299fa3a0c2.williamh@OpenRC
1 commit: 56d592866c7734c42c0b2c0a41376e299fa3a0c2
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 30 21:55:25 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 30 21:55:25 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=56d59286
7
8 start-stop-daemon: fix eerorr calls in get_pid
9
10 The eerror calls in this function make it too verbose, so change them to
11 ewarnv() calls instead. This means that they will only print if the
12 --verbose option is used or EINFO_VERBOSE=yes is set in the environment.
13
14 ---
15 src/rc/start-stop-daemon.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
19 index 3a72a13..cceb041 100644
20 --- a/src/rc/start-stop-daemon.c
21 +++ b/src/rc/start-stop-daemon.c
22 @@ -316,12 +316,12 @@ get_pid(const char *pidfile)
23 return -1;
24
25 if ((fp = fopen(pidfile, "r")) == NULL) {
26 - eerror("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
27 + ewarnv("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
28 return -1;
29 }
30
31 if (fscanf(fp, "%d", &pid) != 1) {
32 - eerror("%s: no pid found in `%s'", applet, pidfile);
33 + ewarnv("%s: no pid found in `%s'", applet, pidfile);
34 fclose(fp);
35 return -1;
36 }