This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an example Linux daemon that communicates via dbus. | |
* When run, it will daemonize and print to standard output two lines: | |
* | |
* 1. The PID of the daemon process, which can be used to kill it later with `kill -s SIGINT <pid>' | |
* 2. The unique D-Bus address it will be listening to | |
*/ | |
#include <signal.h> | |
#include <stdio.h> |