Skip to content

Commit

Permalink
Merge pull request #171 from jannis-baum/issue/169-terminal-exit-fail…
Browse files Browse the repository at this point in the history
…s-when-spawning-vivify-server

Terminal exit fails when spawning vivify-server
  • Loading branch information
jannis-baum authored Aug 29, 2024
2 parents 9c5f1ff + ee5be9d commit 835688e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions viv
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ server_pid=$!

monitor_server() {
while true; do
# server process ended
if ! kill -0 $server_pid 2>/dev/null; then
# check if startup was completed successfully, if so we can exit
test -f "$output" || exit 0
grep --quiet "STARTUP COMPLETE" "$output" && exit 0
# check if startup was completed successfully, if so we can exit
test -f "$output" || exit 0
grep --quiet "STARTUP COMPLETE" "$output" && exit 0

# server process ended otherwise
if ! kill -0 $server_pid 2>/dev/null; then
# if not, the startup failed
print_bug_report
# kill tail from while loop below
Expand Down

0 comments on commit 835688e

Please sign in to comment.