We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 110e9c3 commit 524cb74Copy full SHA for 524cb74
1 file changed
scripts/integration.sh
@@ -21,18 +21,7 @@ reflex run --loglevel debug --env "$env_mode" "$@" & pid=$!
21
# Within the context of this bash, $pid_in_bash is what we need to pass to "kill" on exit
22
# This is true on all platforms.
23
pid_in_bash=$pid
24
-cleanup() {
25
- kill -INT $pid_in_bash ||:
26
- # Wait for the process to exit so it releases file locks (important on Windows)
27
- for i in $(seq 1 10); do
28
- kill -0 $pid_in_bash 2>/dev/null || return 0
29
- sleep 1
30
- done
31
- # Force kill if still alive
32
- kill -9 $pid_in_bash 2>/dev/null ||:
33
34
-}
35
-trap cleanup EXIT
+trap "kill -INT $pid_in_bash ||:" EXIT
36
37
echo "Started server with PID $pid"
38
0 commit comments