[Swift-commit] r4493 - trunk/bin

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Wed May 18 15:35:30 CDT 2011


Author: wozniak
Date: 2011-05-18 15:35:23 -0500 (Wed, 18 May 2011)
New Revision: 4493

Modified:
   trunk/bin/swift
Log:
Undo trap in bin/swift


Modified: trunk/bin/swift
===================================================================
--- trunk/bin/swift	2011-05-18 20:33:17 UTC (rev 4492)
+++ trunk/bin/swift	2011-05-18 20:35:23 UTC (rev 4493)
@@ -151,23 +151,15 @@
     $BASH -c "echo $KEY $USERID $SCRIPTID $SCRIPTLENGTH -1 0 > /dev/udp/$LISTENER/$PORT" > /dev/null 2>&1 &
 fi
 
-trap_swift() {
-	sleep 1
-	SWIFT_JAVA_PID=$( ps --ppid $SWIFT_EVAL_PID | tail -n 1 | cut -d ' ' -f 1 )
-	kill $SWIFT_JAVA_PID
-}
-
 ### EXECUTE ############
+# Note: killing Swift may be briefly delayed due to Coasters shutdown
 if test -n "$CYGWIN"; then
     set CLASSPATHSAVE=$CLASSPATH
     export CLASSPATH="$LOCALCLASSPATH"
     eval java ${OPTIONS} ${COG_OPTS} ${EXEC} ${CMDLINE}
     export CLASSPATH=$CLASSPATHSAVE
 else
-	trap trap_swift SIGINT SIGTERM SIGQUIT
-    eval java ${OPTIONS} ${COG_OPTS} -classpath ${LOCALCLASSPATH} ${EXEC} ${CMDLINE} &
-	SWIFT_EVAL_PID=$!
-	wait
+    eval java ${OPTIONS} ${COG_OPTS} -classpath ${LOCALCLASSPATH} ${EXEC} ${CMDLINE}
 fi
 return_code=$?
 




More information about the Swift-commit mailing list