summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/attacher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/attacher.c b/src/attacher.c
index 4765b94..01e4b9d 100644
--- a/src/attacher.c
+++ b/src/attacher.c
@@ -235,6 +235,8 @@ int Attach(int how)
pause(); /* wait for SIGCONT */
xsignal(SIGCONT, SIG_DFL);
ContinuePlease = false;
+ if (how != MSG_ATTACH)
+ return 0; /* we detached it. jw. */
sleep(1); /* we dont want to overrun our poor backend. jw. */
if ((lasts = MakeClientSocket(0)) == -1)
Panic(0, "Cannot contact screen again. Sigh.");