public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: cygwin-3.1.0 and mintty from desktop shortcut
Date: Thu, 12 Mar 2020 19:57:31 +0900	[thread overview]
Message-ID: <20200312195731.2f8723a73ae0ae4d48fa9dbd@nifty.ne.jp> (raw)
In-Reply-To: <20200311195142.GH4042@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

On Wed, 11 Mar 2020 20:51:42 +0100
Corinna Vinschen wrote:
> Hi Takashi,
> 
> would you mind to take a look?  The mutex is only used in
> fhandler_pty_master::pty_master_fwd_thread if the pseudo console is
> used.  Unfortunately I don't see the faintest hint in the starce why
> this occurs.  It happens pretty early at startup.

I looked the second log, but I found nothing suspicious regarding
mutex. All 'acquire' are paired with 'release' correctly.

However, I wonder why mintty did nothing for more than 60msec
after select() returned.

Achim, can you build mintty locally? If so, could you please
apply attahed patch to mintty 3.1.4 and report the output
in mintty window?

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: mintty-for-achim.diff --]
[-- Type: text/plain, Size: 811 bytes --]

--- src/child.c.orig	2020-02-14 06:27:15.000000000 +0900
+++ src/child.c	2020-03-12 19:49:12.566807600 +0900
@@ -513,7 +513,11 @@
           }
           prevtime = now;
 
+          term_write("Call read()\r\n", 13);
           int ret = read(pty_fd, buf, 1);
+          char m[32];
+          sprintf(m, "Read %d bytes\r\n", ret);
+          term_write(m, strlen(m));
           if (ret > 0)
             len = ret;
         }
@@ -522,7 +526,11 @@
         do {
           //if (kb_trace) printf("[%lu] <read\n", mtime());
 
+          term_write("Call read()\r\n", 13);
           int ret = read(pty_fd, buf + len, sizeof buf - len);
+          char m[32];
+          sprintf(m, "Read %d bytes\r\n", ret);
+          term_write(m, strlen(m));
           if (ret > 0)
             len += ret;
           else

  parent reply	other threads:[~2020-03-12 10:57 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16 23:26 [ANNOUNCEMENT] cygwin 3.1.0-1 Corinna Vinschen
2019-12-17  6:35 ` Thomas Wolff
2019-12-17  8:49   ` [GOLDSTAR][PLUSH HIPPO] " Corinna Vinschen
2019-12-17 20:58     ` Andrew Schulman via cygwin
2019-12-17 18:57 ` cygwin-3.1.0 and mintty from desktop shortcut (was: [ANNOUNCEMENT] cygwin 3.1.0-1) Achim Gratz
2019-12-18  9:07   ` Corinna Vinschen
2019-12-18 16:56     ` cygwin-3.1.0 and mintty from desktop shortcut Achim Gratz
2020-03-11 17:47       ` Achim Gratz
2020-03-11 19:51         ` Corinna Vinschen
2020-03-12  2:56           ` Rainer Emrich
2020-03-12 19:39             ` Achim Gratz
2020-03-12 21:36               ` Thomas Wolff
2020-03-13  1:03               ` Takashi Yano
2020-03-13  2:01                 ` Takashi Yano
2020-03-13 15:09                   ` Rainer Emrich
2020-03-13 21:26                   ` Achim Gratz
2020-03-13 22:20                     ` Ken Brown
2020-03-14 16:11                       ` Achim Gratz
2020-06-06 11:20                 ` ASSI
2020-06-07  1:35                   ` Takashi Yano
2020-06-07  5:29                     ` ASSI
2020-06-07  6:15                     ` Brian Inglis
2020-06-07  7:42                       ` Takashi Yano
2020-06-07  9:23                         ` Takashi Yano
2020-06-08  3:20                           ` Brian Inglis
2020-06-08 10:27                             ` Takashi Yano
2020-06-08 19:24                               ` Brian Inglis
2021-03-22 20:13                   ` Achim Gratz
2020-03-12 10:57           ` Takashi Yano [this message]
2020-03-12 19:46             ` Achim Gratz
2019-12-18 12:28   ` cygwin-3.1.0 and mintty from desktop shortcut (was: [ANNOUNCEMENT] cygwin 3.1.0-1) Takashi Yano
2019-12-18 17:17     ` cygwin-3.1.0 and mintty from desktop shortcut Achim Gratz
2019-12-18 10:18 ` [ANNOUNCEMENT] cygwin 3.1.0-1 Henning
2019-12-18 11:25   ` Corinna Vinschen
2019-12-20  9:40     ` Henning
2019-12-20 10:22       ` Corinna Vinschen
2019-12-20 16:20         ` Henning
2020-01-13 21:30   ` Houder
2020-01-14  0:20     ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200312195731.2f8723a73ae0ae4d48fa9dbd@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).