diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-12 13:53:46 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-12 13:53:46 +0200 |
commit | 5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2 (patch) | |
tree | 31f5a8152cb8398b5b32e08398cd49c14c330d13 /mpd-notification.c | |
parent | ffb503d057b6b0d103f949521e79464751eb4170 (diff) | |
download | mpd-notification-5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2.tar.gz mpd-notification-5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2.tar.zst |
print PID in debug mode
Diffstat (limited to 'mpd-notification.c')
-rw-r--r-- | mpd-notification.c | 4 |
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) { |