HIVE-6758 - Beeline doesn't work with -e option when started in background

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1634447 13f79535-47bb-0310-9956-ffa450edef68