From 4381cca95136b0a8222378a41ac0ebb1bc62ea80 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 23 Nov 2019 23:36:14 +0100 Subject: Use threads, not processes, to handle requests --- util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 5457ffe..05cef22 100644 --- a/util.h +++ b/util.h @@ -3,6 +3,9 @@ #include +#define PTHREAD_CHECK(func_,...) do { int ret=(func_)(__VA_ARGS__); if(ret!=0){ fprintf(stderr,#func_ ": %s\n",strerror(ret)); exit(1); } } while(0) + + char* copy_buf(const char *buf,int len); char* copy_str(const char *str); -- cgit v1.2.3-70-g09d2