diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-31 17:43:08 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-31 17:43:08 +0200 |
commit | caca1899ce5ea5fd8e32c3ea93961a6156531a6c (patch) | |
tree | 65fa12568572da2601b7eaaebd4deabfb96d7616 /src/osmo-bts-sysmo/main.c | |
parent | fcdfb690ca68fcac64ac19ada3680832d45c8469 (diff) |
sysmobts: Make sure that the omlrouter is in a FHS path
I wondered if I should use the 'abstract namespace' feature
of Linux but just put the router into /var/run/ to make it
work out of the box. Change the signature to provide a sane
error message.
Diffstat (limited to 'src/osmo-bts-sysmo/main.c')
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index 60a4a7ff..5a864074 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -369,9 +369,10 @@ int main(int argc, char **argv) signal(SIGUSR2, &signal_handler); osmo_init_ignore_signals(); - rc = oml_router_init(bts, &accept_fd, &read_fd); + rc = oml_router_init(bts, OML_ROUTER_PATH, &accept_fd, &read_fd); if (rc < 0) { - perror("Error creating the OML router\n"); + fprintf(stderr, "Error creating the OML router: %s rc=%d\n", + OML_ROUTER_PATH, rc); exit(1); } |