Repository: stratos Updated Branches: refs/heads/master 685f7487e -> 816500987
Fixing CARBON-14477 - Bad file descriptor error Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/81650098 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/81650098 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/81650098 Branch: refs/heads/master Commit: 816500987c4e2fc9e3361ff58c34f6ca6044cb25 Parents: 685f748 Author: lasinducharith <[email protected]> Authored: Wed Jun 17 10:51:57 2015 +0530 Committer: lasinducharith <[email protected]> Committed: Wed Jun 17 10:51:57 2015 +0530 ---------------------------------------------------------------------- products/stratos/modules/distribution/src/bin/stratos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/81650098/products/stratos/modules/distribution/src/bin/stratos.sh ---------------------------------------------------------------------- diff --git a/products/stratos/modules/distribution/src/bin/stratos.sh b/products/stratos/modules/distribution/src/bin/stratos.sh index e88cc15..67c8722 100755 --- a/products/stratos/modules/distribution/src/bin/stratos.sh +++ b/products/stratos/modules/distribution/src/bin/stratos.sh @@ -176,7 +176,7 @@ if [ "$CMD" = "--debug" ]; then echo "Please start the remote debugging client to continue..." elif [ "$CMD" = "start" ]; then if [ -e "$CARBON_HOME/wso2carbon.pid" ]; then - if ps -p $PID >&- ; then + if ps -p $PID > /dev/null ; then echo "Process is already running" exit 0 fi
