public
Created

bisecting curl keepalive problem on DragonFly

  • Download Gist
bisect.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/sh
 
echo buildconf
./buildconf 2> /dev/null > /dev/null || exit 125
echo configure
./configure 2> /dev/null > /dev/null || exit 125
echo make
make 2> /dev/null > /dev/null || exit 125
 
echo Attempting to use the curl we just built ...
src/curl http://www.shiningsilence.com/dbsdlog/ > bisect.tmp
E=$?
 
echo "Let's see what we got ..."
wc -c bisect.tmp
 
if [ $E -eq 56 ]; then
echo "... and a return code ($E)"
echo "cleaning up ..."
make -k distclean 2> /dev/null > /dev/null
echo done.
exit 1
else
echo "... and a return code ($E)"
echo "cleaning up ..."
make -k distclean 2> /dev/null > /dev/null
echo done.
exit 0
fi

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.