nohup process terminates when terminal disconnects from ssh session #17999
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Repro
We can't figure out how to make this happen. Please help find a simplified repro.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Terminal
The new Windows Terminal.
Milestone
Windows Terminal version
1.20.11781.0
Windows build number
10.0.22631.4169
Other Software
No response
Steps to reproduce
nohup npm run &
leave terminal connected. after some period of inactivity (could be few hours) terminal will disconnect (broken pipe) as machine could go to sleep etc.
When this happens the program you started on the remote machine also terminates.
Expected Behavior
program you started on the remote machine should keep running.
Actual Behavior
program you started on the remote machine terminates. Note this does not happen if you exit from the ssh session by typing the
exit
command vs. leaving the terminal connected and it disconnects due to inactivity. if it helps, on Mac (with iTerm), the problem does not happen when leaving the terminal connected and it disconnects due to inactivityThe text was updated successfully, but these errors were encountered: