X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Date: Tue, 22 Nov 2011 21:10:00 -0800 From: Jeff Schenck To: cygwin AT cygwin DOT com Subject: problem with GNU screen solved Message-ID: <20111123051000.GA3194@chomsky.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-ELNK-Trace: 4e5d418dd236dadcf3d5921ade94fe614d2b10475b571120f152fd8d5f6a2c1a954f6e4b65284a394e508857176a6fc1350badd9bab72f9c350badd9bab72f9c Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I just wanted to pass this along... I was having problems with screen a couple months ago. I would get an error saying "chown tty: No such file or directory" and then it would fail (see http://cygwin.com/ml/cygwin/2011-06/msg00222.html). Paul Hebble was kind enough to write me off-list with a fix. After applying the patch that comes with the source package, I made the following simple change to config.h: #define PTYROFS These comments come from config.h: * Note, screen is unable to change mode or group of the pty if it * is not installed with sufficient privilege. (e.g. set-uid-root) * define PTYROFS if the /dev/pty devices are mounted on a read-only * filesystem so screen should not even attempt to set mode or group * even if running as root (e.g. on TiVo). This solved my problem. Now I'm curious why some see this problem but others don't. Some sort of privilege issue that is setup dependent? Anyway, I hope the package maintainer will find this useful. Thanks, Jeff -- 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