From d053865c295c58309cabde38810bed625f45062d Mon Sep 17 00:00:00 2001 From: L <6723574+louisgv@users.noreply.github.com> Date: Sat, 7 Feb 2026 17:00:50 -0800 Subject: [PATCH] Fix OAuth server blocking: redirect subshell stdout (#30) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit start_oauth_server was called inside $() to capture the PID, but the backgrounded nc subshell inherited the $() stdout pipe. Since $() waits for ALL writers to close, it blocked forever until nc exited (which never happens — it's listening). Fix: redirect the subshell's stdout/stderr to /dev/null so it doesn't hold the pipe open. The PID echo still works because it runs in the parent (after the & backgrounds the child). Co-authored-by: Sprite Co-authored-by: Claude Opus 4.6 (1M context) --- shared/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/common.sh b/shared/common.sh index f7551e82..9640d8ab 100644 --- a/shared/common.sh +++ b/shared/common.sh @@ -253,7 +253,7 @@ start_oauth_server() { ;; esac done - ) /dev/null 2>&1 & echo $! }