Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.1-1, libreadline-devel-7.0.1-1, bash-4.4.5-1

2017-01-12 Thread Steven Penny
On Tue, 3 Jan 2017 10:34:01, "Eric Blake (cygwin)" wrote: > The releases of readline 7.0.1-1 and bash 4.4.5-1, which have been > experimental for a few weeks, have now been promoted to current. Note that new version of libreadline7 breaks interactive non ASCII input. Please see: http://cygwin.com

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Michael Enright
On Thu, Jan 12, 2017 at 2:13 PM, Corinna Vinschen wrote: > Step 3: > > If we did it really intelligent, maybe we finally also have a method > to implement descriptor passing. Finally. After all these years. > > And maybe, we should not actually use the socket itself to exchange > the informa

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Corinna Vinschen
On Jan 12 11:59, Erik Bray wrote: > On Mon, Jan 9, 2017 at 6:16 PM, Corinna Vinschen wrote: > > Right. A better solution for the problem would be nice. Ultimately > > we want to check if the other side of the socket is actually a Cygwin > > process which knows the secret, not a stray native Windo

Re: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread Corinna Vinschen
On Jan 12 09:07, Masamichi Hosoda wrote: > Hello, > > I've found that rename() cannot replace the file > which is opened with writable access on Cygwin. > On Linux, it works. > > If I understand correctly, it should work under POSIX. > > Here's sample code for reproduce. Thanks for the testcase

[ANNOUNCEMENT] Updated: shutdown 2.0-1

2017-01-12 Thread Frank Fesevur
Hi, I've just updated the version of shutdown to v2.0-1 and it can be found at a server near you. FULL CHANGELOG (since shutdown-1.10-1) == * Added --install to install Windows Updates during shutdown/reboot. The InitiateShutdown() Windows API call is used

Re: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread L. A. Walsh
Masamichi Hosoda wrote: Hello, I've found that rename() cannot replace the file which is opened with writable access on Cygwin. On Linux, it works. If I understand correctly, it should work under POSIX. Here's sample code for reproduce. --- #define OLDPATH "oldpath" #define NEWPATH "newpath"

Re: hang on 'cat /proc/mounts' when one of the network drives is on a 'down' system

2017-01-12 Thread Corinna Vinschen
On Jan 12 11:47, cyg Simple wrote: > On 1/12/2017 10:00 AM, Corinna Vinschen wrote: > > On Jan 11 19:13, L. A. Walsh wrote: > >> Corinna Vinschen wrote: > >>> I know why this happens but I don't see an easy way around that. > >>> Basically the problem is that Cygwin has no control over the OS mount

Re: [ANNOUNCEMENT] Updated: Cygwin 2.6.1-1

2017-01-12 Thread David Macek
On 10. 1. 2017 1:39, Steven Penny wrote: > On Sun, 18 Dec 2016 09:41:29, Corinna Vinschen wrote: >> - Fix regression in console charset handling >> Addresses: https://cygwin.com/ml/cygwin/2016-10/msg0.html > > It looks like fixing this may have caused another issue. Example test: > > With c

Re: borgbackup test fail on cygwin (only) - cygwin pipe issues?

2017-01-12 Thread Thomas Waldmann
>> https://github.com/borgbackup/borg/issues/1268 > > Are your pipe handles in open in binary mode or text mode? You should > always ensure they are in binary mode. That was my first idea also. https://github.com/borgbackup/borg/blob/1.0.9/borg/remote.py#L188 this is the place where the ssh sub

Re: borgbackup test fail on cygwin (only) - cygwin pipe issues?

2017-01-12 Thread cyg Simple
On 1/10/2017 10:47 PM, Thomas Waldmann wrote: > Hi, > > borgbackup uses a RPC protocol via a ssh pipe to implement client/server > communication. > > borg client --pipe-- ssh --tcp-- sshd --pipe-- borg serve > > This works very reliable, we have tests running on linux, freebsd, > netbsd, openbsd

Re: hang on 'cat /proc/mounts' when one of the network drives is on a 'down' system

2017-01-12 Thread cyg Simple
On 1/12/2017 10:00 AM, Corinna Vinschen wrote: > On Jan 11 19:13, L. A. Walsh wrote: >> Corinna Vinschen wrote: >>> I know why this happens but I don't see an easy way around that. >>> Basically the problem is that Cygwin has no control over the OS mount >>> points (i. e., drive letter mapping and

Re: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread cyg Simple
On 1/12/2017 10:36 AM, Corinna Vinschen wrote: > On Jan 12 15:30, Nellis, Kenneth (Conduent) wrote: >> From: Masamichi Hosoda >>> If I understand correctly, >>> POSIX behavior should be able to replace the writable opened file by >>> rename(). >>> But, It does not work on my Cygwin environment. >>>

Re: [ANNOUNCEMENT] Updated: lapack-3.7.0-1

2017-01-12 Thread Ian Lambert via cygwin
On Thu, 1/12/17, Marco Atzeri wrote: Subject: Re: [ANNOUNCEMENT] Updated: lapack-3.7.0-1 To: "Ian Lambert" , cygwin@cygwin.com Date: Thursday, January 12, 2017, 6:58 AM On 11/01/2017 21:29, Ian Lambert wrote: > On January 11, 2017 3:41:42 AM EST, Marco AtzeriĀ  wrote: >> To: cygwin-anno

Re: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread Corinna Vinschen
On Jan 12 15:30, Nellis, Kenneth (Conduent) wrote: > From: Masamichi Hosoda > > If I understand correctly, > > POSIX behavior should be able to replace the writable opened file by > > rename(). > > But, It does not work on my Cygwin environment. > > > > Is it no problem if Cygwin's behavior is dif

RE: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread Nellis, Kenneth (Conduent)
From: Masamichi Hosoda > If I understand correctly, > POSIX behavior should be able to replace the writable opened file by > rename(). > But, It does not work on my Cygwin environment. > > Is it no problem if Cygwin's behavior is different from POSIX behavior? > If so, we need different applicatio

Customizing bash user guide out-of-date

2017-01-12 Thread Nellis, Kenneth (Conduent)
Chapter 2 of the Cygwin User's Guide [1] has a section called "Customizing bash" [2]. This section starts off: To set up bash so that cut and paste work properly, click on the "Properties" button of the window, then on the "Misc" tab. Two problems: (1) This statement doesn't

Re: hang on 'cat /proc/mounts' when one of the network drives is on a 'down' system

2017-01-12 Thread Corinna Vinschen
On Jan 11 19:13, L. A. Walsh wrote: > Corinna Vinschen wrote: > > I know why this happens but I don't see an easy way around that. > > Basically the problem is that Cygwin has no control over the OS mount > > points (i. e., drive letter mapping and volume ireparse points). Given > > that, apart fr

Re: rename() cannot replace the file which is opened with writable access

2017-01-12 Thread Masamichi Hosoda
>> I've found that rename() cannot replace the file >> which is opened with writable access on Cygwin. >> On Linux, it works. > > It is OS dependent behavior, and vary even on same OS. > Windows may let you rename a file, or may not, depends on how exactly it is > opened. Thank you for your answe

Re: [ANNOUNCEMENT] Updated: Cygwin 2.6.1-1

2017-01-12 Thread John Hein
Steven Penny wrote at 16:39 -0800 on Jan 9, 2017: > On Sun, 18 Dec 2016 09:41:29, Corinna Vinschen wrote: > > - Fix regression in console charset handling > > Addresses: https://cygwin.com/ml/cygwin/2016-10/msg0.html > > It looks like fixing this may have caused another issue. Example

[ANNOUNCEMENT] Updated: lilypond-2.19.54-1

2017-01-12 Thread Marco Atzeri
Versions 2.19.54-1 of lilypond lilypond-doc for cygwin are now available: CHANGES Last dev upstream release http://www.lilypond.org/old-news.html DESCRIPTION LilyPond is a music engraving program, devoted to producing the highest-quality sheet music possible. It brings the aest

Awk print statement alters the argument variable's content

2017-01-12 Thread Lundberg Christer
This program run with GNU awk 4.1.4 (currently installed with Cygwin): awk ' BEGIN { OFMT="%.8g" buf = 1+0.1 buf = buf "a" print "Length before print:", length(buf) print buf " " print buf print buf " " print

Re: Debugging MariaDB Severe Crash (mysqld daemon dies)

2017-01-12 Thread OwN-3m-All
Can anyone help with this? I'm pretty sure this is a bug with the latest cygwin package for mariadb since the queries work fine in Linux (older versions of MySQL / MariaDB). Would be nice to be able to actually troubleshoot this further, but without any good logs, I don't know where to go to next

Re: postgresql - Cannot initialize new Postgres database on Cygwin - Super User

2017-01-12 Thread Marco Atzeri
On 11/01/2017 23:02, Chloe wrote: When I try to initialize a new database, I get an error: $ /usr/sbin/pg_ctl init no data was returned by command ""/usr/sbin/initdb.exe" -V" The program "initdb" is needed by pg_ctl but was not found in the same directory as "/usr/sbin/pg_ctl".

Re: [ANNOUNCEMENT] Updated: lapack-3.7.0-1

2017-01-12 Thread Marco Atzeri
On 11/01/2017 21:29, Ian Lambert wrote: On January 11, 2017 3:41:42 AM EST, Marco Atzeri wrote: To: cygwin-annou...@cygwin.com Subject: Updated: lapack-3.7.0-1 New versions lapack-3.7.0-1 of lapack (source) liblapack0 liblapack-devel liblapack-doc are available in the Cygwin distribution, 3

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Erik Bray
On Mon, Jan 9, 2017 at 6:16 PM, Corinna Vinschen wrote: > On Jan 9 16:46, Erik Bray wrote: >> Hi Corinna, >> >> Thanks for the response. >> >> On Mon, Jan 9, 2017 at 3:13 PM, Corinna Vinschen wrote: >> > Right. It has to do with how connect/accept works on AF_LOCAL sockets. >> > The handshake do