Add valgrind to scripts
This commit is contained in:
parent
a5bf434b57
commit
484934f5bc
3 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@ mkdir -p ./log
|
|||
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
||||
sleep 2
|
||||
mkdir -p ./shared
|
||||
donar -a rr -b -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||
valgrind --leak-check=full donar -a rr -b -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||
sleep 2
|
||||
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rr.csv 2> ./log/client-measlat-stderr.log
|
||||
valgrind --leak-check=full measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rr.csv 2> ./log/client-measlat-stderr.log
|
||||
|
|
|
@ -5,5 +5,5 @@ sleep 2
|
|||
mkdir -p ./shared
|
||||
cd ./shared
|
||||
pwd
|
||||
donar -a rr -b -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||
valgrind --leak-check=full donar -a rr -b -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||
valgrind --leak-check=full udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||
|
|
|
@ -145,7 +145,7 @@ struct evt_core_cat* evt_core_rm_fd(struct evt_core_ctx* ctx, int fd) {
|
|||
struct evt_core_fdinfo* fdinfo = g_hash_table_lookup (ctx->socklist, &fd);
|
||||
if (fdinfo == NULL) return NULL;
|
||||
cat = fdinfo->cat;
|
||||
if (ctx->verbose) fprintf(stderr, " Closing fd=%d from cat=%s\n",fdinfo->fd, fdinfo->cat->name);
|
||||
if (ctx->verbose) fprintf(stderr, " Closing url=%s, fd=%d from cat=%s\n", fdinfo->url, fdinfo->fd, fdinfo->cat->name);
|
||||
|
||||
// 2. Update category
|
||||
for (int i = 0; i < cat->socklist->len; i++) {
|
||||
|
|
Loading…
Reference in a new issue