projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding crc16 to gnunet_crypto_lib.h
[oweals/gnunet.git]
/
src
/
include
/
gauger.h
diff --git
a/src/include/gauger.h
b/src/include/gauger.h
index b45b2b83f1b60b1f9c98a6ecdd761e7ef10316da..9761cbeae65a27e971234c1f6e0ab5488c4ecddb 100644
(file)
--- a/
src/include/gauger.h
+++ b/
src/include/gauger.h
@@
-23,9
+23,11
@@
char __gauger_s[32];\
pid_t __gauger_p;\
if(!(__gauger_p=fork())){\
char __gauger_s[32];\
pid_t __gauger_p;\
if(!(__gauger_p=fork())){\
+ close (1); \
+ close (2); \
if(!fork()){\
sprintf(__gauger_s,"%Lf", (long double) (value));\
if(!fork()){\
sprintf(__gauger_s,"%Lf", (long double) (value));\
- __gauger_v[0] = "gauger
-cli.py
";\
+ __gauger_v[0] = "gauger";\
__gauger_v[1] = "-n";\
__gauger_v[2] = counter;\
__gauger_v[3] = "-d";\
__gauger_v[1] = "-n";\
__gauger_v[2] = counter;\
__gauger_v[3] = "-d";\
@@
-35,8
+37,7
@@
__gauger_v[7] = "-c";\
__gauger_v[8] = category;\
__gauger_v[9] = (char *)NULL;\
__gauger_v[7] = "-c";\
__gauger_v[8] = category;\
__gauger_v[9] = (char *)NULL;\
- execvp("gauger-cli.py",__gauger_v);\
- perror("gauger");\
+ execvp("gauger",__gauger_v);\
_exit(1);\
}else{\
_exit(0);\
_exit(1);\
}else{\
_exit(0);\
@@
-52,9
+53,11
@@
char __gauger_s[32];\
pid_t __gauger_p;\
if(!(__gauger_p=fork())){\
char __gauger_s[32];\
pid_t __gauger_p;\
if(!(__gauger_p=fork())){\
+ close (1); \
+ close (2); \
if(!fork()){\
sprintf(__gauger_s,"%Lf", (long double) (value));\
if(!fork()){\
sprintf(__gauger_s,"%Lf", (long double) (value));\
- __gauger_v[0] = "gauger
-cli.py
";\
+ __gauger_v[0] = "gauger";\
__gauger_v[1] = "-n";\
__gauger_v[2] = counter;\
__gauger_v[3] = "-d";\
__gauger_v[1] = "-n";\
__gauger_v[2] = counter;\
__gauger_v[3] = "-d";\
@@
-66,8
+69,7
@@
__gauger_v[9] = "-c";\
__gauger_v[10] = category;\
__gauger_v[11] = (char *)NULL;\
__gauger_v[9] = "-c";\
__gauger_v[10] = category;\
__gauger_v[11] = (char *)NULL;\
- execvp("gauger-cli.py",__gauger_v);\
- perror("gauger");\
+ execvp("gauger",__gauger_v);\
_exit(1);\
}else{\
_exit(0);\
_exit(1);\
}else{\
_exit(0);\