function portslay {
    pid=$(lsof -t -i:$port)
    running=$?
    if [ $running -eq 0 ]; then
        kill $pid
    fi
}

OBJSUFFIX=$(git symbolic-ref -q HEAD | sed -e s,refs/heads/,.,)
OBJDIR=obj$OBJSUFFIX
export LD_LIBRARY_PATH=$OBJDIR
export PYTHONPATH=bindings/python


function portslay {
    pid=$(lsof -t -i:$1)
    running=$?
    if [ $running -eq 0 ]; then
        kill $pid
    fi
}

OBJSUFFIX=$(git symbolic-ref -q HEAD | sed -e s,refs/heads/,.,)
OBJDIR=obj$OBJSUFFIX
export LD_LIBRARY_PATH=$OBJDIR
export PYTHONPATH=bindings/python


Fix bug in bash portslay function
Fix bug in bash portslay function

Rather than using its first argument as the port number, the portslay
function was using the global variable $port. It just so happens that
every current call to portslay passes in a variable named $port as the
argument.
