I just had the same problem: I wanted to inspect a merge conflict in conffiles, 
went into a shell and started joe, pressed Ctrl-C to exit joe without changes, 
just to see the session disappear.
Taskmanager confirmed that joe was still running in the background.

Workarounds:

FAILED: screen wouldn't work because I did not have it installed, and I
couldn't do apt-get because the package repository was locked.

FAILED: I was told by a program (apt-get probably but I'm not sure) told me 
that a reboot might help.
Fortunately, that didn't work either: the reboot command said something about 
unfinished business (the message sounded like systemd terminology but I can't 
say for sure, and I don't want to retry with a half-upgraded system: the reboot 
might work, and I don't want that anymore).

WORKED: I found, downloaded and compiled reptyr ("re-pty-er").
Running "reptyr -T <pid of the editor process>" reconnected me. I haven't 
closed the editor yet (I'll just kill it if I find I can't close it without 
pressing Ctrl-C).
This worked because I happened to have git, gcc and related buildtools 
installed; I'm extremely lucky because I had considered uninstalling gcc 
because it's been more than a year since I last touched it; I don't know how to 
install a C compiler without a package manager (now *that* would have been 
fun...)

CONCLUSION:
I find it pretty harsh to put people in an environment where a single keypress 
can put them so deeply into such a tricky-to-escape-from situation.
I'm still pretty anxious because I don't know whether I can return to the 
entire process when I close the editor - the -T option hopefully has taken care 
of that, but reptyr is doing pretty bizarre and arcane stuff, which means that 
its failure modes will be even more bizarre and arcane. Hopefully I won't 
encounter any of these failure modes, but it's a scary situation to be in!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1343737

Title:
  ^x ^c while running an editor inside do-release-upgrade's screen
  session disconnects part of the session

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1343737/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to