[PATCH] Cygwin: FIFO: implement clear_readahead

2019-03-27 Thread Ken Brown
Make fhandler_base::clear_readahead virtual, and implement fhandler_fifo::clear_readahead. This is called by dtable::fixup_after_exec; it clears the readahead in each client. --- winsup/cygwin/fhandler.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/fhan

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Achim Gratz
Michael Haubenwallner writes: > As far as I understand, rebasing is about touching already installed > dlls as well, which would require to restart all Cygwin processes. > As the problem is about some dll built during a larger build job, > this is not something that feels useful to me. That's exac

Re: [PATCH] Cygwin: document the recent FIFO changes

2019-03-27 Thread Corinna Vinschen
On Mar 27 18:10, Ken Brown wrote: > --- > winsup/cygwin/release/3.1.0 | 14 ++ > winsup/doc/new-features.xml | 12 > 2 files changed, 26 insertions(+) > create mode 100644 winsup/cygwin/release/3.1.0 > > diff --git a/winsup/cygwin/release/3.1.0 b/winsup/cygwin/release/3.

[PATCH] Cygwin: document the recent FIFO changes

2019-03-27 Thread Ken Brown
--- winsup/cygwin/release/3.1.0 | 14 ++ winsup/doc/new-features.xml | 12 2 files changed, 26 insertions(+) create mode 100644 winsup/cygwin/release/3.1.0 diff --git a/winsup/cygwin/release/3.1.0 b/winsup/cygwin/release/3.1.0 new file mode 100644 index 0..1f017b

Re: [PATCH 1/1] Cygwin: fix: seteuid32() must return EPERM if privileges are not held.

2019-03-27 Thread Corinna Vinschen
On Mar 27 17:01, J.H. van de Water wrote: > Starting w/ the intro of S4U, seteuid32() calls lsaprivkeyauth(), then > s4uauth(). s4uauth calls LsaRegisterLogonProcess(). > LsaRegisterLogonProcess fails w/ STATUS_PORT_CONNECTION_REFUSED, if the > proper privileges are not held. > Because of RtlNtStat

[PATCH 1/1] Cygwin: fix: seteuid32() must return EPERM if privileges are not held.

2019-03-27 Thread J.H. van de Water
Starting w/ the intro of S4U, seteuid32() calls lsaprivkeyauth(), then s4uauth(). s4uauth calls LsaRegisterLogonProcess(). LsaRegisterLogonProcess fails w/ STATUS_PORT_CONNECTION_REFUSED, if the proper privileges are not held. Because of RtlNtStatusToDosError(), this status would be mapped to ERROR

Re: [PATCH fifo 0/2] Add support for duplex FIFOs

2019-03-27 Thread Corinna Vinschen
On Mar 26 20:01, Corinna Vinschen wrote: > On Mar 26 17:24, Ken Brown wrote: > > Hi Corinna, > > > > On 3/26/2019 4:36 AM, Corinna Vinschen wrote: > > > Hi Ken, > > > > > > On Mar 25 23:06, Ken Brown wrote: > > >> The second patch in this series enables opening a FIFO with O_RDWR > > >> access.

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Corinna Vinschen
Hi Michael, On Mar 27 09:26, Michael Haubenwallner wrote: > Hi Corinna, > > On 3/26/19 7:28 PM, Corinna Vinschen wrote: > > On Mar 26 19:25, Corinna Vinschen wrote: > >> Hi Michael, > >> > >> > >> Redirected to cygwin-patches... > >> > >> > >> On Mar 26 18:10, Michael Haubenwallner wrote: > >>> H

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Michael Haubenwallner
Hi Corinna, On 3/26/19 7:28 PM, Corinna Vinschen wrote: > On Mar 26 19:25, Corinna Vinschen wrote: >> Hi Michael, >> >> >> Redirected to cygwin-patches... >> >> >> On Mar 26 18:10, Michael Haubenwallner wrote: >>> Hi Corinna, >>> >>> as I do still encounter fork errors (address space needed by is