From: Mike Brady Date: Mon, 30 Oct 2017 09:37:34 +0000 (+0100) Subject: Add an exit diagnostic, clean up a dbus flag X-Git-Tag: 3.2d13~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fba88cd609a4e7493430265594e7d4ca1e51e83;p=thirdparty%2Fshairport-sync.git Add an exit diagnostic, clean up a dbus flag --- diff --git a/mdns_external.c b/mdns_external.c index 684ab1e2..86ad208b 100644 --- a/mdns_external.c +++ b/mdns_external.c @@ -65,7 +65,7 @@ static int fork_execvp(const char *file, char *const argv[]) { // If we reach this point then execve has failed. // Write erno's value into the pipe and exit. int ignore = write(execpipe[1], &errno, sizeof(errno)); - + debug(1,"execve has failed."); _exit(-1); return 0; // Just to make the compiler happy. } else { // Parent diff --git a/shairport.c b/shairport.c index e7c05f0f..033bb98c 100644 --- a/shairport.c +++ b/shairport.c @@ -1493,13 +1493,11 @@ int main(int argc, char **argv) { metadata_init(); // create the metadata pipe if necessary #endif -#if defined(HAVE_DBUS) +#ifdef HAVE_DBUS // Start up DBUS services after initial settings are all made debug(1, "Starting up D-Bus services"); pthread_create(&dbus_thread, NULL, &dbus_thread_func, NULL); -#ifdef HAVE_DBUS start_dbus_service(); -#endif #endif daemon_log(LOG_INFO, "Successful Startup");