diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2019-05-13 18:05:37 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2019-05-13 18:05:46 +0200 |
commit | 854c3673bb69a07d0ebaa52c2cd31eebaeaaca2c (patch) | |
tree | 4def02f3fd8e3aad346ff4f0333ae89dc54183e6 | |
parent | 50a8496eb3e0e444bcae6e44e3a72abfeed34472 (diff) | |
download | screen-854c3673bb69a07d0ebaa52c2cd31eebaeaaca2c.tar.gz |
Revert "Remove unnecessary condition check"
This reverts commit ceb9b1f6ec6378c83566af0029ddefcc825ba6d4.
I need to look at this again, there is a report that commit in question
may cause problems and apparently logic may have failed me when I
removed this code, as it probably should stay and everything after it is
unreacheable.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r-- | src/attacher.c | 2 |
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."); |