From 7c5d4fab42907fcbf94c39fd453a2bd449ad9267 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Fri, 6 Jan 2006 04:15:34 +0000 Subject: [PATCH] fixed infopipe multiple conky issues git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@476 7f574dfc-610e-0410-a909-a81674777703 --- README | 2 +- doc/conky.1 | 2 +- doc/variables.xml | 2 +- src/infopipe.c | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README b/README index 97e0c3ff..22b464db 100644 --- a/README +++ b/README @@ -672,7 +672,7 @@ VARIABLES infopipe_status - XMMS/BMP InfoPipe status (Playing/Paused/Stopped) + XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running) infopipe_time diff --git a/doc/conky.1 b/doc/conky.1 index 2f1d1f85..f111368b 100644 --- a/doc/conky.1 +++ b/doc/conky.1 @@ -604,7 +604,7 @@ XMMS/BMP InfoPipe protocol .TP \fBinfopipe_status\fR -XMMS/BMP InfoPipe status (Playing/Paused/Stopped) +XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running) .TP \fBinfopipe_time\fR diff --git a/doc/variables.xml b/doc/variables.xml index c7735a6c..a01eadc1 100644 --- a/doc/variables.xml +++ b/doc/variables.xml @@ -704,7 +704,7 @@ - XMMS/BMP InfoPipe status (Playing/Paused/Stopped) + XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running) diff --git a/src/infopipe.c b/src/infopipe.c index acb5c53e..1ba7e10e 100644 --- a/src/infopipe.c +++ b/src/infopipe.c @@ -84,9 +84,10 @@ void *infopipe_thread_func(void *pvoid) for (;;) { /* convenience loop so we can break below */ memset(buf,0,sizeof(buf)); - memset(items,0,sizeof(items)); if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) { + memset(items,0,sizeof(items)); + strcpy(items[INFOPIPE_STATUS],"Not running"); break; }