mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
stuff
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@523 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
9d0b2d5fb4
commit
d7635e7c1b
@ -1050,7 +1050,9 @@ void *threaded_exec(struct text_object *obj) { // pthreads are really beginning
|
|||||||
double update_time;
|
double update_time;
|
||||||
while (1) {
|
while (1) {
|
||||||
update_time = get_time();
|
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;
|
char *p2 = obj->data.execi.buffer;
|
||||||
FILE *fp = popen(obj->data.execi.cmd,"r");
|
FILE *fp = popen(obj->data.execi.cmd,"r");
|
||||||
int n2 = fread(p2, 1, TEXT_BUFFER_SIZE, fp);
|
int n2 = fread(p2, 1, TEXT_BUFFER_SIZE, fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user