[PATCH 1/2] getdtablesize: work around cygwin issue

2013-09-26 Thread Eric Blake
Cygwin 1.7.25 has a bug that even though it claims to support RLIMIT_NOFILE inheritance, there is no enforcement of the soft limit, and getdtablesize() automatically grows until it reaches the hard limit which cannot be changed by setrlimit(). Best is to just treat things as an invariant limit, as

[PATCH 2/2] dup2, dup3: work around another cygwin crasher

2013-09-26 Thread Eric Blake
Cygwin 1.7.25 can crash due to an off-by-one bug on an attempt to duplicate a file into the current RLIMIT_NOFILE soft limit, when that limit is smaller than the hard limit. The intent in the cygwin code was to allow the dup and auto-increase the soft limit, which is itself questionable (and which

[PATCH 0/2] Avoid cygwin dup2 bugs

2013-09-26 Thread Eric Blake
These patches make it so that 'test-dup2' again passes on current cygwin, while waiting for a new release of cygwin that fixes the off-by-one crash and non-compliance of resource soft limits. Eric Blake (2): getdtablesize: work around cygwin issue dup2, dup3: work around another cygwin crasher

Re: [bug-diffutils] bug#15463: FTBFS c-stack under gcc 4.8 with --enable-gcc-warnings

2013-09-26 Thread Paul Eggert
On 09/25/13 11:01, Eric Blake wrote: > I don't know if this is a case of diffutils being too aggressive about > the warnings it uses on gnulib files Yes, that sounds good enough. I pushed this into diffutils: >From 1d69c1591812101e2dffa64c45e2f1c3c901fadc Mon Sep 17 00:00:00 2001 From: Paul Egge