summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-09-12 13:53:46 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-09-12 13:53:46 +0200
commit5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2 (patch)
tree31f5a8152cb8398b5b32e08398cd49c14c330d13
parentffb503d057b6b0d103f949521e79464751eb4170 (diff)
downloadmpd-notification-5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2.tar.gz
mpd-notification-5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2.tar.zst
print PID in debug mode
-rw-r--r--mpd-notification.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 031cbe7..7144401 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -54,6 +54,10 @@ int main(int argc, char ** argv) {
# endif
")\n", program, PROGNAME, VERSION);
+# if DEBUG
+ printf("%s: Started with PID %d\n", program, getpid());
+# endif
+
conn = mpd_connection_new(NULL, 0, 30000);
if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) {