mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Fix: kill zombies without breaking b963c2827f
This commit is contained in:
parent
81c691d15a
commit
51c928a8ef
@ -675,6 +675,7 @@ FILE* pid_popen(const char *command, const char *mode, pid_t *child) {
|
||||
return NULL;
|
||||
} else if(*child > 0) {
|
||||
close(childend);
|
||||
waitpid(*child, NULL, WNOHANG);
|
||||
} else {
|
||||
//don't read from both stdin and pipe or write to both stdout and pipe
|
||||
if(childend == ends[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user