From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Failure in building Emacs 23.0.50 on Cygwin (fwd) Date: Mon, 3 Sep 2007 01:40:56 +0200 Message-ID: References: <20070903075037.2652@blackhawk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1188776465 3085 80.91.229.12 (2 Sep 2007 23:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2007 23:41:05 +0000 (UTC) Cc: Eli Zaretskii , Dan Nicolaescu , emacs-devel@gnu.org To: "d.henman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 03 01:41:01 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRz3o-0006Rm-Ec for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 01:40:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRz3n-0001nx-FY for ged-emacs-devel@m.gmane.org; Sun, 02 Sep 2007 19:40:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRz3k-0001kP-AN for emacs-devel@gnu.org; Sun, 02 Sep 2007 19:40:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRz3j-0001iL-HP for emacs-devel@gnu.org; Sun, 02 Sep 2007 19:40:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRz3j-0001i7-7U for emacs-devel@gnu.org; Sun, 02 Sep 2007 19:40:51 -0400 Original-Received: from smtp-out112.alice.it ([85.37.17.112]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRz3e-0004Ax-Mh; Sun, 02 Sep 2007 19:40:46 -0400 Original-Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out112.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Sep 2007 01:40:05 +0200 Original-Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Sep 2007 01:40:43 +0200 Original-Received: from homepc ([87.1.235.217]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Sep 2007 01:40:05 +0200 X-X-Sender: Angelo@homepc In-Reply-To: <20070903075037.2652@blackhawk> X-OriginalArrivalTime: 02 Sep 2007 23:40:05.0306 (UTC) FILETIME=[96CCE9A0:01C7EDBA] X-Detected-Kernel: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77625 Archived-At: What do you think about this patch ? ------------------------------------------------------------------------ --- term.c.orig 2007-08-29 23:46:50.000000000 +0200 +++ term.c 2007-09-03 00:38:43.538785600 +0200 @@ -3127,8 +3127,12 @@ EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */ if (pgid != -1) { -#if defined (USG) && !defined (BSD_PGRPS) +#if (defined (USG) && !defined (BSD_PGRPS)) || (defined (CYGWIN)) +#ifdef CYGWIN + setsid (); +#else setpgrp (); +#endif /* ! CYGWIN */ no_controlling_tty = 1; #else #ifdef TIOCNOTTY /* Try BSD ioctls. */ ------------------------------------------------------------------------ With it I have build Emacs and it seems to work (usually I use it from X shell). But, perhaps, you can suggest some more specific test. Cheers, Angelo. On Mon, 3 Sep 2007, d.henman wrote: > > Looks like a good find Angelo. > I have just sent mail to the cygwin developers list to confirm, if this is > still the preferred method of if anything newer exists. > > Regards, > Darel Henman > > Angelo Graziosi wrote: > > > > Searching Cygwin lists archives, I have found this 'laconic' suggestion, > > > > http://sourceware.org/ml/cygwin/2001-08/msg00753.html > > > > > > Could it help in solving our problem? > > > > > > Cheers, > > > > Angelo. > > > >