From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: setpgrp on msdos and w32 Date: Mon, 15 Nov 2010 01:50:58 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1289803875 20643 80.91.229.12 (15 Nov 2010 06:51:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 06:51:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 15 07:51:11 2010 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.69) (envelope-from ) id 1PHsuF-0002Go-7R for ged-emacs-devel@m.gmane.org; Mon, 15 Nov 2010 07:51:11 +0100 Original-Received: from localhost ([127.0.0.1]:33356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHsuE-0003AW-9N for ged-emacs-devel@m.gmane.org; Mon, 15 Nov 2010 01:51:10 -0500 Original-Received: from [140.186.70.92] (port=59082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHsu6-00039G-1q for emacs-devel@gnu.org; Mon, 15 Nov 2010 01:51:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHsu4-0003UQ-2q for emacs-devel@gnu.org; Mon, 15 Nov 2010 01:51:01 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:46083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHsu3-0003UH-W3 for emacs-devel@gnu.org; Mon, 15 Nov 2010 01:51:00 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PHsu2-0004zq-BW for emacs-devel@gnu.org; Mon, 15 Nov 2010 01:50:58 -0500 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132626 Archived-At: Does setpgrp do anything in our msdos and w32 ports? The #else branch of this code from callproc.c:child_setup #if defined(USG) #ifndef SETPGRP_RELEASES_CTTY setpgrp (); /* No arguments but equivalent in this case */ #endif #else setpgrp (pid, pid); #endif /* USG */ might be executed on msdos and w32. If setpgrp does not do anything, this code can be moved inside the not WINDOWSNT and not MSDOS #ifdefs, and that would allow all the code from that point to the end of the function to move up, removing one set of #ifdefs.