after running python multiprocess program terminal no longer shows user input but everything else is ok
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.4.23
- OS version: MacOS 13.6.2[com.googlecode.iterm2.plist]
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) (/uploads/4307e0eaf9e71afaadde7c0fce92dd6d/com.googlecode.iterm2.plist) - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
- I run a command line "python myproc"
- It does some stuff, including capturing signals and multiprocess stuff
- Ctrl-c kills it but now user input in the terminal does not show.. e.g. I type ls I see nothing at command prompt but if I hit enter I get the results of ls
What happened
My typing doesn't show up at the prompt
What should have happened
My typing should have showed up
This happens when I run my python server locally on MacOS in the window and also when I ssh to another box and run the server remote but the terminal is getting all the output.
Now that I write this out I realize it's not much use without the python code. I'll try to write the minimal program that creates the problem.
One thing I am doing is a lot of this:
signal.signal(signal.SIGINT, signal.SIG_IGN) # Ignore KeyboardInterrupt in this child process