aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-11-13 20:26:07 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-11-13 20:26:07 +0000
commit13ea6df19a5e1510629b5d6d6b560455ea9e9622 (patch)
treefeeaa129549bf2a54f6acff7925e3f71117fe973
parent20bec15fe6bc356b8ed3e8ee8469b5f10f34b04b (diff)
downloadpies-13ea6df19a5e1510629b5d6d6b560455ea9e9622.tar.gz
pies-13ea6df19a5e1510629b5d6d6b560455ea9e9622.tar.bz2
Bugfix.
* lib/proctitle.c (mf_proctitle_format): * pies/progman.c (progman_register_retranslators): Register retranslators only for retr_syslog. (open_retranslator): Do not prepend program name to the proctitle. It is done automatically by the library. * lib/proctitle.c: Declare environ. Define __progname if not defined in libc. (mf_proctitle_init): Set __progname. (mf_proctitle_format): Prepend program name to the proctitle.
-rw-r--r--pies/progman.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pies/progman.c b/pies/progman.c
index 215500d..74b9b88 100644
--- a/pies/progman.c
+++ b/pies/progman.c
@@ -213,9 +213,9 @@ progman_register_retranslators ()
if (IS_PROG (prog))
{
struct component *comp = prog->v.p.comp;
- if (comp->retr[RETR_OUT].type != retr_null)
+ if (comp->retr[RETR_OUT].type == retr_syslog)
register_retr (RETR_OUT, prog);
- if (comp->retr[RETR_ERR].type != retr_null)
+ if (comp->retr[RETR_ERR].type == retr_syslog)
register_retr (RETR_ERR, prog);
}
}
@@ -396,7 +396,7 @@ open_retranslator (struct prog *master, int stream)
case 0:
/* Retranslator process */
tag = retr_tag (master->tag, stream);
- mf_proctitle_format ("pies: %s retranslator", tag);
+ mf_proctitle_format ("%s retranslator", tag);
free (tag);
for (i = getmaxfd (); i >= 0; i--)

Return to:

Send suggestions and report system problems to the System administrator.