delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/17/17:20:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Michael Vance <michael DOT vance AT salliemae DOT com>
Subject: Re: Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails
Date: Tue, 17 Apr 2012 21:16:06 +0000 (UTC)
Lines: 43
Message-ID: <loom.20120417T231101-859@post.gmane.org>
References: <4F7F40C1 DOT 7030004 AT t-online DOT de> <20120406194125 DOT GA8118 AT ednor DOT casa DOT cgf DOT cx> <4F7F4AB7 DOT 6000106 AT t-online DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Christian Franke <Christian.Franke <at> t-online.de> writes:

> 
> Christopher Faylor wrote:
> > On Fri, Apr 06, 2012 at 09:15:13PM +0200, Christian Franke wrote:
> >> The inheritance of a /dev/clipboard filedesc through fork() fails in
> >> 1.7.13. Last working snapshot was 2012-03-30.
> > Should be fixed in the next snapshot.
> >
> > http://cygwin.com/snapshots/
> >
> 
> Confirmed 
> 

Maybe not. I'm seeing a similar problem with /dev/urandom that still exists 
in latest snapshot. I don't have access to an older version to show when it 
worked, but it did. I've identified a workaround (shown) that works for my 
specific case, but thought you should still be aware of the problem:

user AT machine ~
$ uname -vsr
CYGWIN_NT-6.1-WOW64 1.7.14s(0.260/5/3) 20120415 17:52:03

user AT machine ~
$ RNDSTRING=$(</dev/urandom tr -dc [:print:] | head -c120)
tr: failed to reopen `stdin' with mode `rb': Bad file descriptor

user AT machine ~
$ set | grep 'RNDSTRING'
RNDSTRING=

user AT machine ~
$ RNDSTRING2=$(cat /dev/urandom | tr -dc [:print:] | head -c120)

user AT machine ~
$ set | grep 'RNDSTRING'
RNDSTRING=
RNDSTRING2='dcOki9N2m0J(`NnxGC)uN$|hoq6C>&)^|bhq=ryo!2fIjSK AT hKOPgEc<]lp*=y9 AT w
$RxgAc^an-6"H{,buf[^q+0!'\''FY#%+WoL;<q'\''Nu!5'\''B>9*76|xHgG00'

user AT machine ~
$


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019