[Groonga-commit] groonga/groonga [master] rpm fedora: use exit instead of return

アーカイブの一覧に戻る

HAYASHI Kentaro null+****@clear*****
Tue Sep 4 17:32:11 JST 2012


HAYASHI Kentaro	2012-09-04 17:32:11 +0900 (Tue, 04 Sep 2012)

  New Revision: 8b393032955727f10b8a09c9fe1a530a002e8943
  https://github.com/groonga/groonga/commit/8b393032955727f10b8a09c9fe1a530a002e8943

  Log:
    rpm fedora: use exit instead of return

  Modified files:
    packages/rpm/fedora/groonga-httpd-upgrade

  Modified: packages/rpm/fedora/groonga-httpd-upgrade (+3 -3)
===================================================================
--- packages/rpm/fedora/groonga-httpd-upgrade    2012-09-04 17:30:56 +0900 (5956496)
+++ packages/rpm/fedora/groonga-httpd-upgrade    2012-09-04 17:32:11 +0900 (2ced8d5)
@@ -13,7 +13,7 @@ killproc -p $PIDFILE ${GROONGA_HTTPD} -USR2
 [ ! -f "$OLD_PIDFILE" ] && sleep $TIMEOUT
 if [ ! -f "$OLD_PIDFILE" ]; then
 	echo "Failed to start new groonga-httpd master."
-	return 1
+	exit 1
 fi
 
 OLD_PID=`cat $OLD_PIDFILE`
@@ -31,10 +31,10 @@ if [ -n "$OLD_WORKER_PROCESS" ]; then
 	echo "Failed to stop old groonga-httpd worker process."
 	killproc -p $PIDFILE ${GROONGA_HTTPD} -QUIT
 	echo "Rollback to old groonga-httpd master."
-	return 2
+	exit 2
 fi
 
 # Stop old master process.
 killproc -p $OLD_PIDFILE ${GROONGA_HTTPD} -QUIT
-return $?
+exit $?
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る