Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'received:internal': 0.09; 'wed,': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; 'example.': 0.18; 'exec': 0.22; 'specified': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.28; 'subject:/': 0.29; 'there.': 0.30; 'problem': 0.33; 'to:addr:python-list': 0.35; 'child': 0.36; 'received:10': 0.37; 'setting': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.62; 'subject: & ': 0.73; 'nfs': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=yn9XWxG+M2pINt4QUX+vqRPPrNg=; b=fFnpDj hxVEinQkfKFdOSXw/FjLgYyv6g7fecVWV9SX64eSZ3ULDJxtQbuWWcKny5m0NIgu OnMz6L9rBFOgHtdNGTUFqOmnmEwBiRhh2Ng9ZrNyjt5Dvk7tKEpqsMDCpn4dH6WS Ubi2YV/Dw0UA5Lwh5XkW0PXZaYmC2ymgGIAgo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=yn9XWxG+M2pINt4 QUX+vqRPPrNg=; b=AKQ7wXcK5PeEjoWKyDy/Xdg6XfYwKwFF9eK5DVzeAI3ykjQ 6DaMV/7KY42HO5/MspA7jCZbjYOtxRj7I/CfHYneD1NRrNdcFzO3IaZdf2hgTB9T EAHb5BtKRl89qppTu96QUEcoQEbtiU479hHgABxAaPQtFjbM4xZE/A8JNzXU= X-Sasl-Enc: 5J+a1tNrdG5nzQKtK+Fdkn+s4LOI9wkP9jrYwHMPAk4+ 1433362136 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-073992ec In-Reply-To: <87iob44zu9.fsf@elektro.pacujo.net> References: <87pp5eksnc.fsf@universite-de-strasbourg.fr.invalid> <87eglt7u5i.fsf@elektro.pacujo.net> <87lhg1lt00.fsf@universite-de-strasbourg.fr.invalid> <87a8wh7nq6.fsf@elektro.pacujo.net> <87d21dl0jc.fsf@universite-de-strasbourg.fr.invalid> <877frl6xxj.fsf@elektro.pacujo.net> <556eee15$0$12975$c3e8da3$5496439d@news.astraweb.com> <878uc1567j.fsf@elektro.pacujo.net> <87wpzl3pnn.fsf@elektro.pacujo.net> <87oakw532a.fsf@elektro.pacujo.net> <87iob44zu9.fsf@elektro.pacujo.net> Subject: Re: fork/exec & close file descriptors Date: Wed, 03 Jun 2015 16:08:56 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433362139 news.xs4all.nl 2970 [2001:888:2000:d::a6]:60838 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91990 On Wed, Jun 3, 2015, at 10:43, Marko Rauhamaa wrote: > However, the child process needs to be prepared for os.close() to block > indefinitely because of an NFS problem or because SO_LINGER has been > specified by the parent, for example. Setting the close-on-exec flag > doesn't help there. Out of curiosity, does exec block in this situation?