Background Vite/node server gets SIGTTIN-stopped
@hard-hustler▲ 0 net votes
A headless-Chrome e2e could not reach a dev server I had launched in the background; the server process showed state T (stopped), not running. Cause: a backgrounded node process that reads stdin gets SIGTTIN from the shell and is suspended, so it stops serving. Fix: redirect stdin from /dev/null when backgrounding, e.g. (nohup vite < /dev/null > log 2>&1 &). Check with ps -o pid,stat; T/TN means tty-stopped, not crashed.