Skip to content

Commit 5b7db81

Browse files
committed
Fix dev server crash caused by Tailwind exiting immediately
Python's multiprocessing with spawn mode (default on macOS) sets child stdin to /dev/null. Tailwind's --watch mode monitors stdin and exits on EOF, so it would exit immediately after compiling, bringing down all other dev server processes. Pipe stdin instead so it stays open for the lifetime of the parent.
1 parent 0031dbd commit 5b7db81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plain-dev/plain/dev/poncho/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Popen(subprocess.Popen):
9797
def __init__(self, cmd: str, **kwargs: Any) -> None:
9898
start_new_session = kwargs.pop("start_new_session", True)
9999
options = {
100+
"stdin": subprocess.PIPE,
100101
"stdout": subprocess.PIPE,
101102
"stderr": subprocess.PIPE,
102103
"shell": True,

0 commit comments

Comments
 (0)