X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=vQgmR RaYvAGQe/Tp8ya7CTiWsS9+CTPEiaIgGE2vourCxXwoFmPcicOVudfQ3Dm85NFG8 GWNNmetsRqpYCXbfkp+nxghU+OYvc8xO7b1EJkhWkS1gdpoP39XdIqMNakIeHA2J k4cihewoWzwmZ0JtYg6ZImQd8AP2+66I1Aghrw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=49RROI0OY7y buFKnfjr3BjJW1o0=; b=fe12OxeCThmhnMakuZpuUTlO/lvhkgFt7rNfvrwaRFt BNe7gXSgzLlxj1f0wAhEkXJYzAAHli99X6hUYw+dASci6PzBcwWcdurYs4vM66gZ 1KuHOBt3UyPP5npGgqP+4FRHGQE8cmdXhNbMyppIjVqLK3V46lxtw5QnZAZxXl9E = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: conuserg007-v.nifty.com X-Nifty-SrcIP: [121.93.68.199] Date: Fri, 17 Apr 2015 20:27:46 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: Cygwin hangs up if several keys are typed during outputting a lot of texts. Message-Id: <20150417202746.351d90441d2d41fb316c07a9@nifty.ne.jp> In-Reply-To: <20150416090533.GB3657@calimero.vinschen.de> References: <20150305125901 DOT GX3213 AT calimero DOT vinschen DOT de> <20150403130735 DOT d04e41875f7defd0e6c2d8d0 AT nifty DOT ne DOT jp> <20150403113226 DOT GP13285 AT calimero DOT vinschen DOT de> <20150404155520 DOT 8564347f1d42b3c709718aad AT nifty DOT ne DOT jp> <20150404084354 DOT GX13285 AT calimero DOT vinschen DOT de> <20150405205504 DOT cda3df2cc76f7bca7c3d21fb AT nifty DOT ne DOT jp> <20150407091113 DOT GB2819 AT calimero DOT vinschen DOT de> <20150413193100 DOT a393612bde79a4ae57b8c7d9 AT nifty DOT ne DOT jp> <20150414073456 DOT GY7343 AT calimero DOT vinschen DOT de> <20150416092618 DOT 9975c0e29b8703dbd8d4aa6a AT nifty DOT ne DOT jp> <20150416090533 DOT GB3657 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Fri__17_Apr_2015_20_27_46_+0900_q5Maze=eeRnRg72t" X-IsSubscribed: yes --Multipart=_Fri__17_Apr_2015_20_27_46_+0900_q5Maze=eeRnRg72t Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Corinna, On Thu, 16 Apr 2015 11:05:33 +0200 Corinna Vinschen wrote: > Ok, but... this is a really big patch and it complicates the pty code > even more. Is there really no other option as far as the TCSADRAIN > problem is concerned? > > What strikes me as weird is that neither fhandler_pty_slave::tcsetattr > nor fhandler_pty_master::tcsetattr give a damn for the optional_actions > parameter. They simply overwrite the tc settings. So I'm wondering, > wouldn't it be possible to add code to the tcsetattr implementation > instead, so that TCSADRAIN/TCSAFLUSH are honored and than only have one > place for OPOST handling? I also think the patch was a big deal. However, I did not have any other good idea. Anyway, I have worked out another solution. Please find a patch attached. What do you think of this one? OPOST code has been now completely moved back to master side as with original implementation. With this patch, tcsetattr() waits until master reads all data in pipe before new attributes are applied to preserve the order between write() and tcsetattr(). However, there is a potential risk in which tcsetattr() can be blocked if master stops reading pipe, even though I can not imagine such a likely situation. Moreover, it is necessary to duplicate io_handle from master-side to slave-side to allow slave to peek master pipe. It is not smart enough, I suppose. ChageLog is as follows. 2015-04-17 Takashi Yano * fhandler.h (fhandler_pty_common): Remove function process_opost_output (). Since processing regarding OPOST is moved back to master side, this function is needed no more. (class fhandler_pty_slave): Add variable 'from_slave' for checking whether master input pipe is empty. This used by flandler_pty_slave ::tcsetattr(). (class fhandler_pty_master): Move variable 'column' for handling ONOCR from class tty to class fhandler_pty_master. Revive variable 'need_nl' which is used by OPOST-processing in master side. * fhandler_tty.cc (struct pipe_reply): Add member 'from_slave'. (fhandler_pty_master::doecho): Call WriteFile() instead of fhandler_pty_common::process_opost_output(). (fhandler_pty_master::process_slave_output): Move OPOST-processing back into this function. (fhandler_pty_slave::fhandler_pty_slave): Initialize 'from_slave'. (fhandler_pty_slave::open): Duplicate handle regarding 'from_slave'. (fhandler_pty_slave::close): Close handle 'from_slave'. (fhandler_pty_slave::write): Call WriteFile() instead of fhandler_pty_common::process_opost_output(). (fhandler_pty_slave::tcsetattr): Wait until master reads all data from slave. (fhandler_pty_slave::fhandler_pty_slave): Initialize 'column' and 'need_nl'. (fhandler_pty_master::pty_master_thread): Add code to duplicate handle regarding 'from_slave'. (fhandler_pty_master::setup): Set io_handle to tty::_from_slave. (fhandler_pty_common::process_opost_output): Remove this function. * select.cc (peek_pipe): Revive the code checking 'need_nl'. * tty.cc (tty::init): Remove initialization for 'column'. * tty.h (class tty): Add variable '_from_slave'. Add two functions from_slave() and set_from_slave() regarding '_from_master'. Remove variable 'column'. It is moved to class fhandler_pty_master. -- Takashi Yano --Multipart=_Fri__17_Apr_2015_20_27_46_+0900_q5Maze=eeRnRg72t Content-Type: application/octet-stream; name="cygwin.patch.20150417-2" Content-Disposition: attachment; filename="cygwin.patch.20150417-2" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3dpbnN1cC9jeWd3aW4vZmhhbmRsZXIuaCBiL3dpbnN1 cC9jeWd3aW4vZmhhbmRsZXIuaAppbmRleCA2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Zl ciBzbGF2ZSBvdXRwdXQuICovCiAgICAgICBpZiAoZWNob19jbnQgPiAwKQpA QCAtMzA4LDggKzMyOCw1OCBAQCBmaGFuZGxlcl9wdHlfbWFzdGVyOjpwcm9j ZXNzX3NsYXZlX291dHB1dCAoY2hhciAqYnVmLCBzaXplX3QgbGVuLCBpbnQg cGt0bW9kZV9vbgogICAgICAgaWYgKGdldF90dHlwICgpLT50aS5jX2xmbGFn ICYgRkxVU0hPIHx8ICFidWYpCiAJY29udGludWU7CiAKLSAgICAgIG1lbWNw eSAob3B0ciwgb3V0YnVmLCBuKTsKLSAgICAgIG9wdHIgKz0gbjsKKyAgICAg IGlmICghKGdldF90dHlwICgpLT50aS5jX29mbGFnICYgT1BPU1QpKQkvLyBy YXcgb3V0cHV0IG1vZGUKKwl7CisJICBtZW1jcHkgKG9wdHIsIG91dGJ1Ziwg bik7CisJICBvcHRyICs9IG47CisJfQorICAgICAgZWxzZQkJCQkJLy8gcG9z dC1wcm9jZXNzIG91dHB1dAorCXsKKwkgIGNoYXIgKmlwdHIgPSBvdXRidWY7 CisKKwkgIHdoaWxlIChuLS0pCisJICAgIHsKKwkgICAgICBzd2l0Y2ggKCpp cHRyKQorCQl7CisJCWNhc2UgJ1xyJzoKKwkJICBpZiAoKGdldF90dHlwICgp LT50aS5jX29mbGFnICYgT05PQ1IpICYmIGNvbHVtbiA9PSAwKQorCQkgICAg eworCQkgICAgICBpcHRyKys7CisJCSAgICAgIGNvbnRpbnVlOworCQkgICAg fQorCQkgIGlmIChnZXRfdHR5cCAoKS0+dGkuY19vZmxhZyAmIE9DUk5MKQor CQkgICAgKmlwdHIgPSAnXG4nOworCQkgIGVsc2UKKwkJICAgIGNvbHVtbiA9 IDA7CisJCSAgYnJlYWs7CisJCWNhc2UgJ1xuJzoKKwkJICBpZiAoZ2V0X3R0 eXAgKCktPnRpLmNfb2ZsYWcgJiBPTkxDUikKKwkJICAgIHsKKwkJICAgICAg Km9wdHIrKyA9ICdccic7CisJCS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wgJUUiKTsKLSAgICAgIHN3aXRjaCAo ZXJyKQorICAgICAgbiA9IE1JTiAoT1VUX0JVRkZFUl9TSVpFLCBsZW4pOwor ICAgICAgY2hhciAqYnVmID0gKGNoYXIgKilwdHI7CisgICAgICBwdHIgPSAo Y2hhciAqKSBwdHIgKyBuOworICAgICAgbGVuIC09IG47CisKKyAgICAgIGlm ICh0YyAoKS0+b3V0cHV0X3N0b3BwZWQgJiYgaXNfbm9uYmxvY2tpbmcgKCkp CisgICAgICAgIHsKKwkgIGlmIChsZW4gPCAoc2l6ZV90KXRvd3JpdGUpCisJ ICAgIHRvd3JpdGUgLT0gbGVuOworCSAgZWxzZQorCSAgICB7CisJICAgICAg c2V0X2Vycm5vKEVBR0FJTik7CisJICAgICAgdG93cml0ZSA9IC0xOworCSAg ICB9CisJICBicmVhazsKKyAgICAgICAgfQorCisgICAgICB3aGlsZSAodGMg KCktPm91dHB1dF9zdG9wcGVkKQorCWN5Z3dhaXQgKDEwKTsKKworICAgICAg Qk9PTCByZXMgPSBXcml0ZUZpbGUgKGdldF9vdXRwdXRfaGFuZGxlICgpLCBi dWYsIG4sICZuLCBOVUxMKTsKKyAgICAgIGlmICghcmVzKQogCXsKLQljYXNl IEVSUk9SX05PX0RBVEE6Ci0JICBlcnIgPSBFUlJPUl9JT19ERVZJQ0U7Ci0J ZGVmYXVsdDoKLQkgIF9fc2V0ZXJybm9fZnJvbV93aW5fZXJyb3IgKGVycik7 CisJICBEV09SRCBlcnIgPSBHZXRMYXN0RXJyb3IgKCk7CisJICB0ZXJtaW9z X3ByaW50ZiAoIldyaXRlRmlsZSBmYWlsZWQsICVFIik7CisJICBzd2l0Y2gg KGVycikKKwkgICAgeworCSAgICBjYXNlIEVSUk9SX05PX0RBVEE6CisJICAg ICAgZXJyID0gRVJST1JfSU9fREVWSUNFOworCSAgICBkZWZhdWx0OgorCSAg ICAgIF9fc2V0ZXJybm9fZnJvbV93aW5fZXJyb3IgKGVycik7CisJICAgIH0K KwkgIH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IF90b19tYXN0ZXI7IH0KKyAgSEFORExF IGZyb21fc2xhdmUoKSBjb25zdCB7IHJldHVybiBfZnJvbV9zbGF2ZTsgfQog ICB2b2lkIHNldF9mcm9tX21hc3RlciAoSEFORExFIGgpIHsgX2Zyb21fbWFz dGVyID0gaDsgfQogICB2b2lkIHNldF90b19tYXN0ZXIgKEhBTkRMRSBoKSB7 IF90b19tYXN0ZXIgPSBoOyB9CisgIHZvaWQgc2V0X2Zyb21fc2xhdmUgKEhB TkRMRSBoKSB7IF9mcm9tX3NsYXZlID0gaDsgfQogCiAgIGludCByZWFkX3Jl dHZhbDsKICAgYm9vbCB3YXNfb3BlbmVkOwkvKiBUcnVlIGlmIG9wZW5lZCBh dCBsZWFzdCBvbmNlLiAqLwotICBpbnQgY29sdW1uOwkvKiBDdXJyZW50IENv bHVtbiAqLwogCiAgIHZvaWQgaW5pdCAoKTsKICAgSEFORExFIG9wZW5faW51 c2UgKEFDQ0VTU19NQVNLIGFjY2Vzcyk7Cg== --Multipart=_Fri__17_Apr_2015_20_27_46_+0900_q5Maze=eeRnRg72t Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --Multipart=_Fri__17_Apr_2015_20_27_46_+0900_q5Maze=eeRnRg72t--