aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-01-09 19:19:09 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-09 19:19:09 +0200
commitfc696a834573e65c184ecbcd78e70f67d78e861d (patch)
tree69993ca090c8dae38247b70e28d2041b89e31ded
parent8b112059a0a1295541b275957377aa41b445e42d (diff)
downloadpies-fc696a834573e65c184ecbcd78e70f67d78e861d.tar.gz
pies-fc696a834573e65c184ecbcd78e70f67d78e861d.tar.bz2
Bugfix
-rw-r--r--src/pies.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/pies.c b/src/pies.c
index 03ed506..9ca7827 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -2305,6 +2305,18 @@ main (int argc, char **argv)
exit (EX_CONFIG);
}
+ if (!control.url)
+ {
+ char const *str = default_control_url[init_process];
+ if (pies_url_create (&control.url, str))
+ {
+ logmsg (LOG_CRIT, _("%s: cannot create control URL: %s"),
+ str, strerror (errno));
+ if (!init_process)
+ exit (EX_OSERR);
+ }
+ }
+
progman_build_depmap ();
switch (command)
{
@@ -2377,18 +2389,6 @@ main (int argc, char **argv)
diag_setup (DIAG_TO_SYSLOG);
}
- if (!control.url)
- {
- char const *str = default_control_url[init_process];
- if (pies_url_create (&control.url, str))
- {
- logmsg (LOG_CRIT, _("%s: cannot create control URL: %s"),
- str, strerror (errno));
- if (!init_process)
- exit (EX_OSERR);
- }
- }
-
if (init_process)
ctl_open ();
else

Return to:

Send suggestions and report system problems to the System administrator.