Merge branch 'master' of github.com:unbit/uwsgi

This commit is contained in:
Roberto De Ioris
2012-11-02 12:38:09 +01:00
3 changed files with 35 additions and 0 deletions
+1
View File
@@ -1919,6 +1919,7 @@ int uwsgi_real_file_serve(struct wsgi_request *wsgi_req, char *real_filename, si
// if it is a HEAD request just skip transfer
if (!uwsgi_strncmp(wsgi_req->method, wsgi_req->method_len, "HEAD", 4)) {
wsgi_req->status = 200;
return 0;
}
+9
View File
@@ -0,0 +1,9 @@
valgrind-generate-sups.sh
=========================
This script can be used to generate valgrind suppression file.
Valgrind will show a lot of python related errors, to filter them out You can:
./valgrind-generate-sups.sh > valgrind.suppression
valgrind --tool=memcheck --suppressions=valgrind.suppression [ARGS]
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
gensup() {
for SUP in Cond Free Leak Overlap Addr1 Addr2 Addr4 Addr8 Addr16 Value1 Value2 Value4 Value8 Value16 ; do
echo "
{
Autogenerated $1 suppression
Memcheck:${SUP}
obj:$2
}
"
done
}
while read SO ; do
gensup libpython "$SO"
done < <(find /usr/lib*/ -type f -name libpython*)
while read SO ; do
gensup python "$SO"
done < <(find /usr/lib*/python*/ -type f -name \*.so)