aboutsummaryrefslogtreecommitdiff
path: root/src/include/gauger.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-02-18 23:05:53 +0000
committerChristian Grothoff <christian@grothoff.org>2011-02-18 23:05:53 +0000
commit4876ba69f5f8eff053a462f39806d066d5d3b3ca (patch)
tree0647f8949af5bdf8bcf924543df83ad666fce661 /src/include/gauger.h
parent27f127bde856e81316fd8afe039dfefb98c0c016 (diff)
downloadgnunet-4876ba69f5f8eff053a462f39806d066d5d3b3ca.tar.gz
gnunet-4876ba69f5f8eff053a462f39806d066d5d3b3ca.zip
fix
Diffstat (limited to 'src/include/gauger.h')
-rw-r--r--src/include/gauger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/gauger.h b/src/include/gauger.h
index 51e5b41a4..26f4a578e 100644
--- a/src/include/gauger.h
+++ b/src/include/gauger.h
@@ -5,6 +5,6 @@
5#include <stdio.h> 5#include <stdio.h>
6#include <sys/wait.h> 6#include <sys/wait.h>
7 7
8#define GAUGER(counter, value) {char __gauger_s[32];pid_t __gauger_p;if(!(__gauger_p=fork())){if(!fork()){sprintf(__gauger_s,"%d",value);execlp("gauger-cli.py","gauger-cli.py",counter, __gauger_s,(char*)NULL);_exit(1);}else{_exit(0);}}else{waitpid(__gauger_p,NULL,0);}} 8#define GAUGER(counter, value) {char __gauger_s[64];pid_t __gauger_p;if(!(__gauger_p=fork())){if(!fork()){sprintf(__gauger_s,"%llu", (unsigned long long) value);execlp("gauger-cli.py","gauger-cli.py",counter, __gauger_s,(char*)NULL);_exit(1);}else{_exit(0);}}else{waitpid(__gauger_p,NULL,0);}}
9 9
10#endif 10#endif