aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-05-13 13:48:21 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-05-13 13:50:54 +0300
commit557bbc589958d1c91e5c5bb84881f5198f3b5921 (patch)
tree46cc9271bdcc88840e551442fe92ee25d189aeff
parentb9d856bd368130688f72209b04d615bc2f2bdf42 (diff)
downloadpies-557bbc589958d1c91e5c5bb84881f5198f3b5921.tar.gz
pies-557bbc589958d1c91e5c5bb84881f5198f3b5921.tar.bz2
Minor change
* mfd/bi_db.m4: Fix comment. * pies/progman.c: Use _exit in child processes. This is a work over a fault in MU design: it registers the pidfile removal function via atexit.
-rw-r--r--pies/progman.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pies/progman.c b/pies/progman.c
index 04b1b26..31820f7 100644
--- a/pies/progman.c
+++ b/pies/progman.c
@@ -383,7 +383,7 @@ open_redirector (struct prog *master, int stream)
switch (pid = fork ())
{
case 0:
- /* Retranslator process */
+ /* Redirector process */
tag = redir_tag (master, stream);
mf_proctitle_format ("%s redirector", tag);
free (tag);
@@ -400,12 +400,12 @@ open_redirector (struct prog *master, int stream)
close (p[1]);
fp = fdopen (p[0], "r");
if (fp == NULL)
- exit (1);
+ _exit (1);
openlog (master->tag, LOG_PID, master->facility);
prio = master->v.p.comp->redir[stream].v.prio;
while (getline (&buf, &size, fp) > 0)
syslog (prio, "%s", buf);
- exit (0);
+ _exit (0);
case -1:
mu_diag_output (MU_DIAG_CRIT,
@@ -752,7 +752,7 @@ prog_start (struct prog *prog)
openlog (MU_LOG_TAG (), LOG_PID, mu_log_facility);
syslog (LOG_CRIT, _("cannot start `%s': %s"), prog->tag,
mu_strerror (errno));
- exit (EX_SOFTWARE);
+ _exit (EX_SOFTWARE);
case -1:
mu_diag_output (MU_DIAG_CRIT,

Return to:

Send suggestions and report system problems to the System administrator.