summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-16 12:53:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-16 12:53:47 +0100
commita4b8729e6af299a3f2eb4fa676e93cfd85778521 (patch)
tree7d65ba6940b7cb1326104076eeff711b8b33e697 /vdr.c
parent687b93b2152b2ba82b0f828e543d4904c124bae2 (diff)
downloadvdr-a4b8729e6af299a3f2eb4fa676e93cfd85778521.tar.gz
vdr-a4b8729e6af299a3f2eb4fa676e93cfd85778521.tar.bz2
Added support for systemd2.1.6
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index ff4688ee..835d33df 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 3.10 2014/01/26 12:27:51 kls Exp $
+ * $Id: vdr.c 3.11 2014/03/16 12:49:13 kls Exp $
*/
#include <getopt.h>
@@ -34,6 +34,9 @@
#include <stdlib.h>
#include <sys/capability.h>
#include <sys/prctl.h>
+#ifdef SDNOTIFY
+#include <systemd/sd-daemon.h>
+#endif
#include <termios.h>
#include <unistd.h>
#include "audio.h"
@@ -845,6 +848,10 @@ int main(int argc, char *argv[])
alarm(WatchdogTimeout); // Initial watchdog timer start
}
+#ifdef SDNOTIFY
+ sd_notify(0, "READY=1");
+#endif
+
// Main program loop:
#define DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL)