return value of getitimer after an alarm

2019-02-23 Thread Mike Gran via cygwin
Hi- There is an unusual behaviour with setitimer/getitimer and I'm not sure if it is a bug or not. Basically, if I call setitimer to set an SIGALRM, and then call getitimer *after* the alarm goes off, I rather expect the time I receive from getitimer should be {tv_sec = 0, tv_usec = 0}, but, in

Re: cygwin 3.0.1-1 breaks my sshd install

2019-02-23 Thread Cary Lewis
Changing the sshd service to run as localsystem rather than cyg_server allows me to again ssh into the machine. Thanks for everyone on this mailing list - I spent hours trying to figure this out - and because the list doesn't seem to get indexed by google, the web searches I was doing were of no

Re: Python extraneous dependencies

2019-02-23 Thread LRN
On 24.02.2019 3:29, Steven Penny wrote: > I noticed that "python36" requires "binutils". Further, I noticed this > dependency chain: > > python36 > libuuid-devel > pkg-config > libglib2.0_0 > > "binutils" is 5,863,216 bytes and "libglib" is 3,044,044 bytes. I am of the > opinion we should

Python extraneous dependencies

2019-02-23 Thread Steven Penny
I noticed that "python36" requires "binutils". Further, I noticed this dependency chain: python36 > libuuid-devel > pkg-config > libglib2.0_0 "binutils" is 5,863,216 bytes and "libglib" is 3,044,044 bytes. I am of the opinion we should not be including large dependencies like these unless

Re: The timerfd functions slow down emacs

2019-02-23 Thread Ken Brown
On 2/23/2019 5:11 PM, Corinna Vinschen wrote: > On Feb 23 21:24, Ken Brown wrote: >> On 2/23/2019 4:01 PM, Corinna Vinschen wrote: >>> On Feb 23 20:48, Ken Brown wrote: On 2/23/2019 2:15 PM, Corinna Vinschen wrote: > Below's the NSSTC I used to test my timerfd implementation (based on

Re: The timerfd functions slow down emacs

2019-02-23 Thread Corinna Vinschen
On Feb 23 21:24, Ken Brown wrote: > On 2/23/2019 4:01 PM, Corinna Vinschen wrote: > > On Feb 23 20:48, Ken Brown wrote: > >> On 2/23/2019 2:15 PM, Corinna Vinschen wrote: > >>> Below's the NSSTC I used to test my timerfd implementation (based on > >>> another STC to show a problem in POSIX

[newlib-cygwin] Cygwin: timerfd: fix select always returning immediately

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0fb41d48aa3b0e8637a783961ffe4d67911fec50 commit 0fb41d48aa3b0e8637a783961ffe4d67911fec50 Author: Corinna Vinschen Date: Sat Feb 23 23:02:44 2019 +0100 Cygwin: timerfd: fix select always returning immediately

Re: problem with mmap and fork()

2019-02-23 Thread Glyn Gowing
Thanks for confirming for me that cygwin can't do this with fork(). I guess I'll have to warn them about this difference in cygwin. I was hoping I had made a mistake somewhere. On Sat, Feb 23, 2019 at 6:54 AM Doug Henderson wrote: > > On Fri, 22 Feb 2019 at 17:01, Glyn Gowing <> wrote: > > I

Re: The timerfd functions slow down emacs

2019-02-23 Thread Ken Brown
On 2/23/2019 4:01 PM, Corinna Vinschen wrote: > On Feb 23 20:48, Ken Brown wrote: >> On 2/23/2019 2:15 PM, Corinna Vinschen wrote: >>> Below's the NSSTC I used to test my timerfd implementation (based on >>> another STC to show a problem in POSIX timers). From what I can tell it >>> works as

Re: emacs-X11 unstable under cygwin 3.0.0-1

2019-02-23 Thread Ken Brown
On 2/19/2019 9:47 AM, Eliot Moss wrote: > I have found that emacs-X11 (26.1-1) is unstable under cygwin 3.0.0-1.  It > works fine if I revert to cygwin 2.11.2-1. I'm not seeing any crashes on my system. I am, however, seeing certain operations take longer than they should. I've just built

Re: The timerfd functions slow down emacs

2019-02-23 Thread Corinna Vinschen
On Feb 23 20:48, Ken Brown wrote: > On 2/23/2019 2:15 PM, Corinna Vinschen wrote: > > Below's the NSSTC I used to test my timerfd implementation (based on > > another STC to show a problem in POSIX timers). From what I can tell it > > works as desired. If you find a problem, please point it out

Re: The timerfd functions slow down emacs

2019-02-23 Thread Ken Brown
On 2/23/2019 2:15 PM, Corinna Vinschen wrote: > Below's the NSSTC I used to test my timerfd implementation (based on > another STC to show a problem in POSIX timers). From what I can tell it > works as desired. If you find a problem, please point it out or send a > patch. Thanks, that saved me

[newlib-cygwin] Cywin: user profile: unload impersonation user profile on exit

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=bcb33dc4f0552e749dcb6c44e1ef7815b5db75a1 commit bcb33dc4f0552e749dcb6c44e1ef7815b5db75a1 Author: Corinna Vinschen Date: Sat Feb 23 21:06:12 2019 +0100 Cywin: user profile: unload impersonation user profile on exit

[newlib-cygwin] Cygwin: seteuid: allow inheriting impersonation user profile handle

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dd3730ed9c1c78176f1aab1b429bb5a105d90a44 commit dd3730ed9c1c78176f1aab1b429bb5a105d90a44 Author: Corinna Vinschen Date: Sat Feb 23 20:48:59 2019 +0100 Cygwin: seteuid: allow inheriting impersonation user profile handle

[newlib-cygwin] Cygwin: user profile: add debug output to unload_user_profile

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8eee25241e86fc596acde25c7c53723b75afee30 commit 8eee25241e86fc596acde25c7c53723b75afee30 Author: Corinna Vinschen Date: Sat Feb 23 20:46:48 2019 +0100 Cygwin: user profile: add debug output to unload_user_profile

Re: The timerfd functions slow down emacs

2019-02-23 Thread Corinna Vinschen
On Feb 23 16:05, Ken Brown wrote: > On 2/21/2019 6:52 PM, Ken Brown wrote: > > When emacs is built, it detects the timerfd functions and uses them if > > they're > > found. Now that Cygwin has these functions, the resulting build of emacs is > > very slow to respond to user input. If I press a

Re: cygwin 3.0.1-1 breaks my sshd install

2019-02-23 Thread Cary Lewis
I’m seeing a similar issue. Will try using localsystem. > On Feb 21, 2019, at 6:43 AM, Houder wrote: > >> On Thu, 21 Feb 2019 11:09:11, Corinna Vinschen wrote: >> >> I managed it today already but I'm somewhat stumped. >> >> I ran ssh-host-config and let the script install a new local

[newlib-cygwin] Cygwin: user profile: Make an effort to unload unused user profiles

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=71b8777a7140b79942d6e5079818cad2c3f5f07f commit 71b8777a7140b79942d6e5079818cad2c3f5f07f Author: Corinna Vinschen Date: Sat Feb 23 17:30:44 2019 +0100 Cygwin: user profile: Make an effort to unload unused user profiles

[newlib-cygwin] Cygwin: user profile: fetch roaming profile path via LDAP

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=322ab51659dbac7ff6b5a6aa5bfb3099a7e11681 commit 322ab51659dbac7ff6b5a6aa5bfb3099a7e11681 Author: Corinna Vinschen Date: Sat Feb 23 17:22:44 2019 +0100 Cygwin: user profile: fetch roaming profile path via LDAP Commit

[newlib-cygwin] Cygwin: cygheap: better comment impersonation tokens

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9db6048c0fe7c35586f762ee2cdc1d0f92a041ea commit 9db6048c0fe7c35586f762ee2cdc1d0f92a041ea Author: Corinna Vinschen Date: Sat Feb 23 17:28:12 2019 +0100 Cygwin: cygheap: better comment impersonation tokens Signed-off-by:

[newlib-cygwin] Cygwin: cygheap: drop unnecessary code closing curr_primary_token

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=331653a215a054688308236e595bd0dfba08450f commit 331653a215a054688308236e595bd0dfba08450f Author: Corinna Vinschen Date: Sat Feb 23 17:29:42 2019 +0100 Cygwin: cygheap: drop unnecessary code closing curr_primary_token

[newlib-cygwin] Cygwin: seteuid32: don't use INVALID_HANDLE_VALUE

2019-02-23 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=13b1f9c0d1c6860be91523289c8a6ac6a87cb9db commit 13b1f9c0d1c6860be91523289c8a6ac6a87cb9db Author: Corinna Vinschen Date: Sat Feb 23 17:24:05 2019 +0100 Cygwin: seteuid32: don't use INVALID_HANDLE_VALUE NULL is the natural

Re: The timerfd functions slow down emacs

2019-02-23 Thread Ken Brown
On 2/21/2019 6:52 PM, Ken Brown wrote: > When emacs is built, it detects the timerfd functions and uses them if they're > found. Now that Cygwin has these functions, the resulting build of emacs is > very slow to respond to user input. If I press a key, there is a 1-2 second > delay before emacs

Re: problem with mmap and fork()

2019-02-23 Thread Doug Henderson
On Fri, 22 Feb 2019 at 17:01, Glyn Gowing <> wrote: > I have a program (attached) that works correctly on my mac but does > not work with Cygwin on Windows 10. I'm running the latest version of > What happens in the buggy execution is that the child obtains a lock > before the parent releases it.

Re: problem with mmap and fork()

2019-02-23 Thread Václav Haisman
On 23. 02. 19 1:02, Glyn Gowing wrote: > Hello everyone, > > I have a program (attached) that works correctly on my mac but does > not work with Cygwin on Windows 10. I'm running the latest version of > Cygwin (downloaded the updates two days ago) and using gcc as the c > compiler. > > What