Terminal - running process is paused and not restored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Terminal App |
Confirmed
|
High
|
Unassigned | ||
ubuntu-application-lifecycle |
New
|
Undecided
|
Unassigned |
Bug Description
When the terminal goes out of focus with a long running process, the process is paused and not restored when the terminal comes back into focus.
There are 2 different camps of thought on how to solve this.
***
The first is to allow these processes to run in the background:
A simple solution would be to give a lifecycle exception to the terminal app.
Another solution would be to use a special command that would run a command in the background. In the same manner that the sudo command runs any command as a different user, another command (e.g. runbg) could run any command as an external background running program.
This command might do something along the lines of forking the process so that it is not owned by the terminal app and thus not dependent on the terminal to keep running.
This solution giving the user more control without compromising the experience when background processing is not needed.
***
The second solution is to automatically do the equivalent of running the 'fg' command when the terminal is back in focus. This allows many long running processes to keep working seamlessly while not compromising the battery and lifecycle design of the OS. In my experience, I was able to 'fg' an ssh command after around 40 mins of the process being paused, and continue with my SSH session unhindered.
description: | updated |
summary: |
- Keep Terminal session running in the background + Terminal - running commands in the background |
summary: |
- Terminal - running commands in the background + Terminal - running process is paused and not restored |
description: | updated |
Changed in ubuntu-terminal-app: | |
importance: | Undecided → High |
status: | New → Confirmed |
https:/ /bugs.launchpad .net/ubuntu- terminal- app/+bug/ 1397119 is related to this issue