summaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index bbfad2d..0a0644f 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -97,11 +97,10 @@ void getcmd(const Block *block, char *output)
char * s;
int e;
do {
+ errno = 0;
s = fgets(tmpstr, CMDLENGTH-(strlen(delim)+1), cmdf);
e = errno;
} while (!s && e == EINTR);
- // this is equivalent but less readable and stuff
- //while(!fgets(tmpstr, CMDLENGTH-(strlen(delim)+1), cmdf) && errno == EINTR);
pclose(cmdf);
int i = strlen(block->icon);
strcpy(output, block->icon);
Software created with 💖