This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails


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@machine ~
$ uname -vsr
CYGWIN_NT-6.1-WOW64 1.7.14s(0.260/5/3) 20120415 17:52:03

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

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

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

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

user@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]