1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-24 11:55:43 +00:00

fixed infopipe multiple conky issues

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@476 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-01-06 04:15:34 +00:00
parent 9fb5e80a3e
commit 7c5d4fab42
4 changed files with 5 additions and 4 deletions

2
README
View File

@ -672,7 +672,7 @@ VARIABLES
infopipe_status infopipe_status
XMMS/BMP InfoPipe status (Playing/Paused/Stopped) XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
infopipe_time infopipe_time

View File

@ -604,7 +604,7 @@ XMMS/BMP InfoPipe protocol
.TP .TP
\fBinfopipe_status\fR \fBinfopipe_status\fR
XMMS/BMP InfoPipe status (Playing/Paused/Stopped) XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
.TP .TP
\fBinfopipe_time\fR \fBinfopipe_time\fR

View File

@ -704,7 +704,7 @@
<command><option>infopipe_status</option></command> <command><option>infopipe_status</option></command>
</term> </term>
<listitem> <listitem>
XMMS/BMP InfoPipe status (Playing/Paused/Stopped) XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
<para></para></listitem> <para></para></listitem>
</varlistentry> </varlistentry>

View File

@ -84,9 +84,10 @@ void *infopipe_thread_func(void *pvoid)
for (;;) { /* convenience loop so we can break below */ for (;;) { /* convenience loop so we can break below */
memset(buf,0,sizeof(buf)); memset(buf,0,sizeof(buf));
memset(items,0,sizeof(items));
if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) { if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) {
memset(items,0,sizeof(items));
strcpy(items[INFOPIPE_STATUS],"Not running");
break; break;
} }