Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix suspending with process groups (#49)
Since using raw mode via `raw.lflag &= ~(… | termios.ISIG)` pyrepl needs to handle SIGSTOP itself, but before this patch would only signal its own process. Using `0` for the pid signals the process group instead. Manual test: When running the following from a shell `Ctrl-z` will not give you the shell's prompt, but the process is stuck, and needs to be signaled to continue using `kill -CONT $pid`: > python -c 'import os; os.system("python pyrepl/reader.py")' I have noticed this when using pdbpp with pytest, which was wrapped in a shell script, not using `exec python …`.
- Loading branch information