bug report: tty/termios flags weirdness

2020-11-14 Thread john hood via Cygwin
After thrashing with my own bugs for a while, I think I've found a minor bug in Cygwin's tty/termios handling-- seen in 3.1.7 on Windows 10 20H2.  Among other things, this causes tmux to fail on non-pty sessions. STC: Start Cygwin in conhost or Windows Terminal. Execute 'stty -isig' You will

Re: Atomic mmap replacement

2018-02-19 Thread John Hood
On 02/19/2018 12:19, Corinna Vinschen wrote: On second thought, we *could* do this, if the pages have been mmapped before(*). Unfortunately this would require a *major* revamp of the page handling in mmap. We would have to keep the mapping of every single 64K page separate. I.e., requesting

Re: Mosh connection errors

2017-01-30 Thread John Hood
(I'm one of the Mosh maintainers, but I happen to be here too.) The usual cause of this is the ssh session not being able to find mosh-server on the remote server. Try 'ssh -t root@host -- mosh-server' to simplify debugging a bit. What OS and Mosh version do you have on the server?

Re: Vim responds too slow on the latest snapshot of cygwin1.dll

2016-06-07 Thread John Hood
It has taken way too long to get a usable Win7 VM set up, but I can confirm that the 2.5.2.0.1 snapshot works well on Win7 with my test programs and fixes the issues noted in Corinna's commits, and is somewhat faster than 2.5.1. The snapshot's issues with Win7 were also worse than others have

Re: last snapshot is not better than previous version

2016-06-03 Thread John Hood
On 5/31/2016 5:16 AM, Corinna Vinschen wrote: On May 30 19:00, Denis Excoffier wrote: On 2016-05-30 10:25, Corinna Vinschen wrote: The problem is, there's no change at all in the snapshot which would explain a slowdown of such basic functions: - Assorted select(2) improvements: commits

Re: [PATCH] Re: Cygwin select() issues and improvements

2016-05-18 Thread john hood
On 5/18/16 3:23 PM, Corinna Vinschen wrote: > Hi John, > > On May 8 16:43, john hood wrote: >> On 3/29/16 8:49 AM, Corinna Vinschen wrote: >>> John, ping? >> >> Sorry it took so long to reply, but I finally got around to cleaning up >> the patchset, I

Re: [PATCH] Re: Cygwin select() issues and improvements

2016-05-08 Thread john hood
ile. > On Mar 20 16:00, Corinna Vinschen wrote: >> On Mar 19 18:43, john hood wrote: >>> From c805552cdc9e673ef2330388ddb8b7a0da741766 Mon Sep 17 00:00:00 2001 >>> From: John Hood <cg...@glup.org> >>> Date: Thu, 28 Jan 2016 17:08:39 -0500 >>> Subject

Re: [PATCH] Re: Cygwin select() issues and improvements

2016-03-19 Thread john hood
7a0da741766 Mon Sep 17 00:00:00 2001 From: John Hood <cg...@glup.org> Date: Thu, 28 Jan 2016 17:08:39 -0500 Subject: [PATCH 1/5] Use high-resolution timebases for select(). * cygwait.h: Add cygwait_us() methods. * select.h: Change prototype for select_stuff::wait() for large

Re: [PATCH] Re: Cygwin select() issues and improvements

2016-03-18 Thread John Hood
On 3/14/2016 6:12 AM, Corinna Vinschen wrote: Hi John, On Mar 13 17:37, john hood wrote: On 3/4/16 3:58 AM, Corinna Vinschen wrote: John, Ping? I'd be interested to get your patches into Cygwin. select really needs some kicking :) Sorry to be so slow responding. Here's a rebased

Re: [PATCH] Multiple timer issues + new [PATCH]

2016-02-18 Thread john hood
On 2/18/16 6:39 PM, Irányossy Knoblauch Artúr wrote: > The ntod timer (type hires_ns), however, is getting its time value > from QueryPerformanceCounter(), which, according to the MSDN > documentation, will provide a "time stamp that can be used for > time-interval measurements" -- that is just

Re: Cygwin select() issues and improvements

2016-02-18 Thread john hood
On 2/15/16 7:57 AM, Corinna Vinschen wrote: > On Feb 14 03:09, john hood wrote: >> [I Originally sent this last week, but it bounced.] >> >> Various issues with Cygwin's select() annoyed me, and I've spent some >> time gnawing on them. >> >> * With 1-byte r

Re: Cygwin select() issues and improvements

2016-02-14 Thread John Hood
I hadn't checked UTF-8 input before, but yes, it's the same problem. Your test program and mine are very similar. Regards, --jh > On Feb 14, 2016, at 7:29 AM, Thomas Wolff <t...@towo.net> wrote: > >> Am 14.02.2016 um 09:09 schrieb john hood: >> [I Origin

mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread John Hood
Hi all, I installed wine-staging (i386) 1.9.3 and Cygwin (i386) on my Ubuntu 15.10 laptop in hopes of being able to maintain Cygwin compatibility of some software without having to actually use Windows. I've seen several difficulties, but the most serious one was that gcc would fail with

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread John Hood
cygcheck runs OK from CMD, though not under bash. So here is that. regards, --jh Cygwin Configuration Diagnostics Current System Time: Sat Feb 13 15:36:41 2016 Windows 2003 Server Ver 5.2 Build 3790 Service Pack 2 Running under WOW64 on AMD64 Path: C:\windows\system32

Re: cygwin.dll: bug with select on Windows console

2016-01-12 Thread john hood
On 1/11/16 4:37 AM, Corinna Vinschen wrote: > On Jan 10 05:04, John Hood wrote: >> On 1/9/2016 9:41 AM, Corinna Vinschen wrote: >>> I fixed the code and took the opportunity to clean it up a >>> little using >>>> basically the (fixed) patch I proposed two

Re: cygwin.dll: bug with select on Windows console

2016-01-09 Thread John Hood
On 1/9/2016 9:41 AM, Corinna Vinschen wrote: I fixed the code and took the opportunity to clean it up a little using >basically the (fixed) patch I proposed two days ago. > >I've just uploaded new developer snapshots tohttps://cygwin.com/snapshots/ >and a new test release 2.4.0-0.17 which

Re: cygwin.dll: bug with select on Windows console

2016-01-08 Thread john hood
On 1/8/16 11:29 AM, Corinna Vinschen wrote: > On Jan 7 13:18, John Hood wrote: >> Sorry about forgetting the testcase (which was good, actually, that >> version had a bug). I've attached it here. This takes a single >> argument, the timeout value for select() in m

Re: cygwin.dll: bug with select on Windows console

2016-01-07 Thread John Hood
better directions for building Cygwin? regards, --jh On 01/07/2016 12:30, Corinna Vinschen wrote: > Hi John, > > On Dec 27 20:49, john hood wrote: >> Hi all, >> >> I'm one of the Mosh maintainers. Recently a user reported a problem >> where Mosh exits suddenly soon

Re: cygwin.dll: bug with select on Windows console

2016-01-01 Thread John Hood
More observations: * This also happens on a Windows 8.1 VDI install with a different AV/security solution-- different enough from my machine that I don't think the Windows/app environment is the cause of this, it looks more strongly like a Cygwin issue to me. *

cygwin.dll: bug with select on Windows console

2015-12-27 Thread john hood
Hi all, I'm one of the Mosh maintainers. Recently a user reported a problem where Mosh exits suddenly soon after startup while he is typing at it, see . The problem turns out to be that occasionally, select() times out, returns 0 as it should,