diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-01-09 19:19:09 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-01-09 19:19:09 +0200 |
commit | fc696a834573e65c184ecbcd78e70f67d78e861d (patch) | |
tree | 69993ca090c8dae38247b70e28d2041b89e31ded | |
parent | 8b112059a0a1295541b275957377aa41b445e42d (diff) | |
download | pies-fc696a834573e65c184ecbcd78e70f67d78e861d.tar.gz pies-fc696a834573e65c184ecbcd78e70f67d78e861d.tar.bz2 |
Bugfix
-rw-r--r-- | src/pies.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 |