summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2019-10-24 13:47:18 -0400
committerJon Gjengset <jon@thesquareplanet.com>2019-10-24 13:47:18 -0400
commite8122c14080dee0640091b52e171abeed4dd03ff (patch)
tree0544e2a6a90ee4f50787b46cd28fda6ea125a8c2
parentHandle newlines in params (diff)
downloadmktrayicon-e8122c14080dee0640091b52e171abeed4dd03ff.tar.gz
mktrayicon-e8122c14080dee0640091b52e171abeed4dd03ff.tar.bz2
mktrayicon-e8122c14080dee0640091b52e171abeed4dd03ff.zip
Remove debug prints
-rw-r--r--mktrayicon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mktrayicon.c b/mktrayicon.c
index b6c456c..f815bb7 100644
--- a/mktrayicon.c
+++ b/mktrayicon.c
@@ -111,14 +111,11 @@ gpointer watch_fifo(gpointer argv)
/* inner is for read */
while (1) {
- fprintf(stderr, "reading\n");
read = fgets(buf, 1024 * sizeof(char), fifo);
- fprintf(stderr, "read\n");
if (read == NULL) {
/* no more data in pipe, reopen and block */
fclose(fifo);
- fprintf(stderr, "closed\n");
goto outer;
}
@@ -129,12 +126,10 @@ gpointer watch_fifo(gpointer argv)
if (*read == '\0') {
/* empty command */
- fprintf(stderr, "empty\n");
continue;
}
cmd = *read;
- fprintf(stderr, "cmd %c\n", cmd);
len = strlen(read);
if (len < 3) {
param = NULL;
bgstack15