<NME> test_sessid.sh
<BEF> #!/bin/sh

`dirname $0`/../launch_tcpcryptd.sh &
sleep 2
RES=$(curl http://tcpcrypt.org/sessid.php 2>/dev/null | grep -v NONE)
RET=$?
killall tcpcryptd > /dev/null
echo "$RES"
return $RET

<MSG> kill tcpcryptd

<DFF> @@ -1,9 +1,11 @@
 #!/bin/sh
+PIDFILE=/tmp/tcpcrypt.pid
 
 `dirname $0`/../launch_tcpcryptd.sh &
 sleep 2
 RES=$(curl http://tcpcrypt.org/sessid.php 2>/dev/null | grep -v NONE)
 RET=$?
-killall tcpcryptd > /dev/null
+kill `cat $PIDFILE 2>/dev/null` > /dev/null 2>&1
+rm -f $PIDFILE
 echo "$RES"
-return $RET
\ No newline at end of file
+exit $RET
\ No newline at end of file

kill tcpcryptd