chiark / gitweb /
Include version string in background program logs
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 27 Oct 2013 16:53:59 +0000 (16:53 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 27 Oct 2013 16:53:59 +0000 (16:53 +0000)
clients/playrtp.c
server/disorderd.c
server/speaker.c

index 2bd2452321a36e23d8564e5cbaece6b72dafe644..c9005f87d4dcc712e1cfc8f2210d8330c6f470ad 100644 (file)
@@ -708,6 +708,8 @@ int main(int argc, char **argv) {
   default:
     disorder_fatal(0, "usage: disorder-playrtp [OPTIONS] [[ADDRESS] PORT]");
   }
+  disorder_info("version "VERSION" process ID %lu",
+                (unsigned long)getpid());
   /* Look up address and port */
   if(!(res = get_address(&sl, &prefs, &sockname)))
     exit(1);
index 612ac288cfa96015d5e321ecf1e3c12df7c5ae25..e3e7d8601b23af937edddcb3aff1535fe35ac914 100644 (file)
@@ -239,7 +239,7 @@ int main(int argc, char **argv) {
     openlog(progname, LOG_PID, LOG_DAEMON);
     log_default = &log_syslog;
   }
-  disorder_info("process ID %lu", (unsigned long)getpid());
+  disorder_info("version "VERSION" process ID %lu", (unsigned long)getpid());
   fix_path();
   srand(xtime(0));                     /* don't start the same every time */
   /* gcrypt initialization */
index 1d26c6c9c607733cc155466a6d50d7c4945b3a94..a1b2d1d5f28d485412f106cf0167e26b3bf35a9b 100644 (file)
@@ -820,6 +820,8 @@ int main(int argc, char **argv) {
     disorder_fatal(errno, "error binding socket to %s", addr.sun_path);
   xlisten(listenfd, 128);
   nonblock(listenfd);
+  disorder_info("version "VERSION" process ID %lu",
+                (unsigned long)getpid());
   disorder_info("listening on %s", addr.sun_path);
   memset(&sm, 0, sizeof sm);
   sm.type = SM_READY;