aboutsummaryrefslogtreecommitdiff
path: root/src/pies.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 14:47:37 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 14:47:37 +0300
commitfa64411b0d02955f9a187214538b424c5ea37e6e (patch)
treed36cf1c1382dc9885ff1e15405d538e73c81cf0e /src/pies.c
parentbb7928607963e43db9a5fb7cac6b76d21982b7c5 (diff)
downloadpies-fa64411b0d02955f9a187214538b424c5ea37e6e.tar.gz
pies-fa64411b0d02955f9a187214538b424c5ea37e6e.tar.bz2
Improve diagnostics output.
* configure.ac (AC_CHECK_FUNCS): Remove checks for unused functions. * gnulib.modules: Add fprintftime. Remove quote. * src/pies.c (pidfile_read): Do not print error message if 'No such process' is returned. (main): Set default quoting style to shell. * src/pies.h: Include fprintftime.h. * src/progman.c (prog_start, progman_dump_stats): Quote arguments on output. (progman_dump_stats): Use fprintftime.
Diffstat (limited to 'src/pies.c')
-rw-r--r--src/pies.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/pies.c b/src/pies.c
index 52abc80..cc2ac53 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -1510,9 +1510,10 @@ pidfile_read (int must_exist)
fclose (fp);
if (n && kill (n, 0))
{
- logmsg (LOG_ERR,
- _("cannot signal master process %lu: %s"),
- (unsigned long) n, strerror (errno));
+ if (errno != ESRCH)
+ logmsg (LOG_ERR,
+ _("cannot signal master process %lu: %s"),
+ (unsigned long) n, strerror (errno));
if (errno == EPERM)
return n; /* be on the safe side */
return -1;
@@ -1824,7 +1825,9 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
mf_proctitle_init (argc, argv, environ);
-
+
+ set_quoting_style (NULL, shell_quoting_style);
+
/* Set default logging */
log_to_stderr = !stderr_closed_p ();
log_setup (log_to_stderr);

Return to:

Send suggestions and report system problems to the System administrator.