__attribute__((format(printf, 1, 2)))
void calltrace(char *fmt, ...);
-/* used from everywhere just to drain results we don't want to read and which
- * recent versions of gcc increasingly and annoyingly complain about.
- */
-extern int shut_your_big_mouth_gcc_int;
-
-/* used from everywhere just to drain results we don't want to read and which
- * recent versions of gcc increasingly and annoyingly complain about.
- */
-static inline void shut_your_big_mouth_gcc(int r)
-{
- shut_your_big_mouth_gcc_int = r;
-}
-
/* same as strstr() but case-insensitive */
const char *strnistr(const char *str1, int len_str1, const char *str2, int len_str2);
{
char c = 'c';
- shut_your_big_mouth_gcc(write(poller_wr_pipe[tid], &c, 1));
+ DISGUISE(write(poller_wr_pipe[tid], &c, 1));
}
chunk_reset(&trash);
chunk_appendf(&trash, "Thread %u is about to kill the process.\n", tid + 1);
ha_thread_dump_all_to_trash();
- shut_your_big_mouth_gcc(write(2, trash.area, trash.data));
+ DISGUISE(write(2, trash.area, trash.data));
for (;;)
abort();
}
break;
}
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
if (fe->mode == PR_MODE_HTTP)
char hostname[MAX_HOSTNAME_LEN];
char localpeer[MAX_HOSTNAME_LEN];
-/* used from everywhere just to drain results we don't want to read and which
- * recent versions of gcc increasingly and annoyingly complain about.
- */
-int shut_your_big_mouth_gcc_int = 0;
-
static char **next_argv = NULL;
struct list proc_list = LIST_HEAD_INIT(proc_list);
char pidstr[100];
snprintf(pidstr, sizeof(pidstr), "%d\n", (int)getpid());
if (pidfd >= 0)
- shut_your_big_mouth_gcc(write(pidfd, pidstr, strlen(pidstr)));
+ DISGUISE(write(pidfd, pidstr, strlen(pidstr)));
}
/* the father launches the required number of processes */
if (pidfd >= 0 && !(global.mode & MODE_MWORKER)) {
char pidstr[100];
snprintf(pidstr, sizeof(pidstr), "%d\n", ret);
- shut_your_big_mouth_gcc(write(pidfd, pidstr, strlen(pidstr)));
+ DISGUISE(write(pidfd, pidstr, strlen(pidstr)));
}
if (global.mode & MODE_MWORKER) {
struct mworker_proc *child;
chunk_memcat(&trash, HTX_SL_P3_PTR(sl), max);
trash.area[trash.data++] = '\n';
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
/*
chunk_memcat(&trash, v.ptr, max);
trash.area[trash.data++] = '\n';
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
/* Allocate a new HTTP transaction for stream <s> unless there is one already.
s->uniq_id, s->be->id,
objt_cs(si_f->end) ? (unsigned short)objt_cs(si_f->end)->conn->handle.fd : -1,
objt_cs(si_b->end) ? (unsigned short)objt_cs(si_b->end)->conn->handle.fd : -1);
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
if (si_f->state == SI_ST_CLO &&
s->uniq_id, s->be->id,
objt_cs(si_f->end) ? (unsigned short)objt_cs(si_f->end)->conn->handle.fd : -1,
objt_cs(si_b->end) ? (unsigned short)objt_cs(si_b->end)->conn->handle.fd : -1);
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
}
s->uniq_id, s->be->id,
objt_cs(si_f->end) ? (unsigned short)objt_cs(si_f->end)->conn->handle.fd : -1,
objt_cs(si_b->end) ? (unsigned short)objt_cs(si_b->end)->conn->handle.fd : -1);
- shut_your_big_mouth_gcc(write(1, trash.area, trash.data));
+ DISGUISE(write(1, trash.area, trash.data));
}
s->logs.t_close = tv_ms_elapsed(&s->logs.tv_accept, &now);