tag 684342 + patch pending
kthxbye

Axel Beckert wrote:
> While reattaching works fine after applying the patch from
> http://bugs.debian.org/683228, remotely detaching a still attached
> screen (as necessary before a reattach) shows the same behaviour as
> without patch:

The following patch (modulo whitespace due to copy & paste) seems to
fix this issue:

--- a/debian/patches/60-644788-screen-4.1.0-4.0.3-interoperability.patch
+++ b/debian/patches/60-644788-screen-4.1.0-4.0.3-interoperability.patch
@@ -94,7 +100,9 @@ Index: screen-4.1.0~20120320gitdb59704/attacher.c
 +WriteOldMessage(struct msg *m)
 +{
 +  sleep(1); /* give the server some time to reopen the pipe */
-+  if (m->type == MSG_ATTACH && m->m.attach.detachfirst == MSG_ATTACH)
++  if (m->type == MSG_ATTACH && (m->m.attach.detachfirst == MSG_ATTACH ||
++                                m->m.attach.detachfirst == MSG_DETACH ||
++                                m->m.attach.detachfirst == MSG_POW_DETACH))
 +    {
 +      struct old_msg old_m;
 +      int s;

Still leaves a non-working "screen -d" (4.0.3 interoperability only)
open. Likely needs another copy-the-date-from-the-new-message block
inside WriteOldMessage(). But compared to "screen -r", it can be
aborted with Ctrl-C and hence is a less critical issue.

Will test this patch for a few days and if I don't find any other
issues, upload a new package to unstable.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to