From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Blake Subject: Re: setting working dir in posix_spawn() (Re: Fix 'git log' early pager startup error case) Date: Thu, 26 Aug 2010 08:13:22 -0600 Organization: Red Hat Message-ID: <4C767682.7030700@redhat.com> References: <20100825013625.GC10423@burratino> <4C74BFA7.1090907@viscovery.net> <4C752739.3010808@redhat.com> <20100826061815.GH9708@burratino> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Johannes Sixt , Linus Torvalds , Git Mailing List , Junio C Hamano , Matthias Lederhofer , =?ISO-8859-1?Q?J=FCrgen_R=FChle?= , austin-group-futures-l@opengroup.org To: Jonathan Nieder X-From: git-owner@vger.kernel.org Thu Aug 26 16:16:47 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OodFx-0000gx-MM for gcvg-git-2@lo.gmane.org; Thu, 26 Aug 2010 16:16:42 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753813Ab0HZOPB (ORCPT ); Thu, 26 Aug 2010 10:15:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25136 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512Ab0HZOPA (ORCPT ); Thu, 26 Aug 2010 10:15:00 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7QEDPaq011405 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 26 Aug 2010 10:13:25 -0400 Received: from [10.3.113.81] (ovpn-113-81.phx2.redhat.com [10.3.113.81]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7QEDNr3022080; Thu, 26 Aug 2010 10:13:23 -0400 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 In-Reply-To: <20100826061815.GH9708@burratino> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On 08/26/2010 12:18 AM, Jonathan Nieder wrote: > Do you think there would be any interest in a posix_spawn() variant > that takes a dir parameter? I am imagining something like this: Of your variants, I would most prefer: > int posix_spawn_file_actions_addchdir(posix_spawn_file_actions_t > *file_actions, int dirfd); For that matter, it may also be worth adding posix_spawn_file_actions_addopenat, which mirrors the recent addition of openat() semantics. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org