1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@523 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-02-02 01:43:43 +00:00
parent 9d0b2d5fb4
commit d7635e7c1b

View File

@ -1050,7 +1050,9 @@ void *threaded_exec(struct text_object *obj) { // pthreads are really beginning
double update_time;
while (1) {
update_time = get_time();
pthread_mutex_lock(&(obj->data.execi.thread_info.mutex));
if (pthread_mutex_trylock(&(obj->data.execi.thread_info.mutex))) {
break;
}
char *p2 = obj->data.execi.buffer;
FILE *fp = popen(obj->data.execi.cmd,"r");
int n2 = fread(p2, 1, TEXT_BUFFER_SIZE, fp);