From 5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 12 Sep 2013 13:53:46 +0200 Subject: print PID in debug mode --- mpd-notification.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3-70-g09d2