mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 11:05:18 +00:00
infopipe comments
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@479 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
43e756287a
commit
f4370ecf46
@ -82,6 +82,7 @@ void *infopipe_thread_func(void *pvoid)
|
|||||||
memset(buf,0,sizeof(buf));
|
memset(buf,0,sizeof(buf));
|
||||||
|
|
||||||
if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) {
|
if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) {
|
||||||
|
/* InfoPipe is not running */
|
||||||
memset(items,0,sizeof(items));
|
memset(items,0,sizeof(items));
|
||||||
strcpy(items[INFOPIPE_STATUS],"Not running");
|
strcpy(items[INFOPIPE_STATUS],"Not running");
|
||||||
break;
|
break;
|
||||||
@ -91,7 +92,7 @@ void *infopipe_thread_func(void *pvoid)
|
|||||||
FD_SET(fd,&readset);
|
FD_SET(fd,&readset);
|
||||||
|
|
||||||
/* On Linux, select() reduces the timer by the amount of time not slept,
|
/* On Linux, select() reduces the timer by the amount of time not slept,
|
||||||
* so we must rest the timer with each loop. */
|
* so we must reset the timer with each loop. */
|
||||||
tm.tv_sec=1;
|
tm.tv_sec=1;
|
||||||
tm.tv_usec=0;
|
tm.tv_usec=0;
|
||||||
rc=select(fd+1,&readset,NULL,NULL,&tm);
|
rc=select(fd+1,&readset,NULL,NULL,&tm);
|
||||||
|
Loading…
Reference in New Issue
Block a user