mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
Merge branch 'master' of git.omp.am:/home/omp/git/conky
This commit is contained in:
commit
7bfff20e5d
@ -675,6 +675,7 @@ FILE* pid_popen(const char *command, const char *mode, pid_t *child) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
} else if(*child > 0) {
|
} else if(*child > 0) {
|
||||||
close(childend);
|
close(childend);
|
||||||
|
waitpid(*child, NULL, WNOHANG);
|
||||||
} else {
|
} else {
|
||||||
//don't read from both stdin and pipe or write to both stdout and pipe
|
//don't read from both stdin and pipe or write to both stdout and pipe
|
||||||
if(childend == ends[0]) {
|
if(childend == ends[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user