delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/06/15:15:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
Message-ID: <4F7F40C1.7030004@t-online.de>
Date: Fri, 06 Apr 2012 21:15:13 +0200
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails
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

The inheritance of a /dev/clipboard filedesc through fork() fails in 
1.7.13. Last working snapshot was 2012-03-30.

Access to /dev/clipboard itself works as expected.

Testcase:

$ uname -vrs
CYGWIN_NT-6.1-WOW64 1.7.12s(0.260/5/3) 20120330 12:20:36

$ echo test1 | cat > /dev/clipboard

$ cat < /dev/clipboard
test1


$ uname -vrs
CYGWIN_NT-6.1-WOW64 1.7.13(0.260/5/3) 2012-04-05 12:43

$ echo test2 | cat > /dev/clipboard
cat: standard output: Bad file descriptor

$ cat < /dev/clipboard
cat: failed to reopen `stdin' with mode `rb': Bad file descriptor

$ cat /dev/clipboard
test1

$ echo test3 > /dev/clipboard

$ cat /dev/clipboard
test3

Christian


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